Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 878 / 5574

March 6, 2020, 14:35 (GMT)
Fix integer overflow in BLI_mempool_as_arrayN()

`(size_t)(int * int)` will actually cast overflown integer to size_t,
which isn't what was intended here. Correct thing would be to cast
in the following manner `(size_t)int * int`.

In this particular case can as well use function which is designed to
allocate an array of memory without overflow.
March 6, 2020, 14:27 (GMT)
Cycles: cleanup warning
March 6, 2020, 14:27 (GMT)
Cleanup: Collection: Move to IDTypeInfo, and remove unused BKE API.

Note: we still need BKE_collection_free since we call it from scene.c.
March 6, 2020, 14:24 (GMT)
Cleanup: Use the SCULPT_ prefix in all sculpt_intern functions
March 6, 2020, 14:20 (GMT)
Cleanup: bScreen: Move to IDTypeInfo and remove unused BKE API.
March 6, 2020, 14:02 (GMT)
Cleanup: use ELEM macro for path slash checks
March 6, 2020, 14:01 (GMT)
Fluid: Revert bc2ce31d7940 (changes to open boundaries)

Changes from that commit turned out to be unstable.
March 6, 2020, 13:59 (GMT)
Fix T73842: UI: add cloth collision settings to Hair Dynamics panel

Since hair collisions were integrated with the cloth solver
(rBd42a7bbd6ea5), there are a couple of relevant settings which were not
exposed to the User:
- Collision Quality
- Minimum Distance (this was reported in T73842, default of 0.015m was
still limiting in certain scenarios - this can now be made smaller)
- Impulse clamping
- Collision collection

This will add a 'Collisions' panel to Hair Dynamics with those settings

Note: in contrast to 'real' cloth, self-collisions are not supported for
hair

Maniphest Tasks: T73842

Differential Revision: https://developer.blender.org/D7032
March 6, 2020, 13:58 (GMT)
Cleanup: bNodeTree: Move to IDTypeInfo and remove unused BKE API.
March 6, 2020, 13:52 (GMT)
Improve modifier error message with sculpt mode

Make it obvious that this relates to being in sculpt mode.

ref T74489

Maniphest Tasks: T74489

Differential Revision: https://developer.blender.org/D7044
March 6, 2020, 13:44 (GMT)
Cleanup: tweak Cycles #includes in preparation for clang-format sorting
March 6, 2020, 13:39 (GMT)
Cleanup: avoid use of BLI_cleanup_dir

Some cases don't need to add the trailing slash.
Use BLI_cleanup_path in this case.
March 6, 2020, 13:29 (GMT)
Documentation: added bpy.msgbus description and examples

The `bpy.msgbus` namespace was not included in the documentation generation.
I've added it, and ported Campbell's examples from P563.
March 6, 2020, 13:29 (GMT)
Cleanup: Message bus, removed incorrect return type from docstring

The docstring was likely copy-pasted, and the return type was not adjusted.
Since the `bpy.msgbus.subscribe_rna()` returns nothing, I just removed the
return type documentation.
March 6, 2020, 13:19 (GMT)
Cleanup: remove BLI_cleanup_file

In practice, references to files rarely have trailing slashes
(by accident). Remove this function in favor of BLI_cleanup_path.
March 6, 2020, 13:19 (GMT)
Cleanup: spelling
March 6, 2020, 13:17 (GMT)
Fix using wrong property name for preserve face sets when remeshing

Spotted by Roel Koster in the initial face set commit.
March 6, 2020, 12:31 (GMT)
Nodes: fix writing socket default values to file

Previously, `writedata` was used to store `bNodeSocket->default_value`.
There are a couple of issues with that:
* Breaks if someone tries to load the file on a big endian system (afaik).
* There is a `/* do not use for structs */` comment on `writedata`.
* Depends on `MEM_allocN_len` which should be avoided in my opinion.
* Now it is more apparent, that this should be handled by callbacks as well.

The part in `readfile.c` should work just fine still. I could also do a case
distinction there, but the code would be the same for every case for now.
Just `sock->default_value = newdataadr(fd, sock->default_value);`.

This might change, if we want to store more complex socket type specific data
that does not fit into a single struct.

Differential Revision: https://developer.blender.org/D7039

Reviewers: brecht
March 6, 2020, 12:00 (GMT)
CodeCleanup: Added View3DShading enums

Added the core enums that workbench draw engine uses.
March 6, 2020, 11:54 (GMT)
Cleanup: Brush: Move to IDTypeInfo, and remove unused BKE API.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021