Blender Git Commits

Blender Git "master" branch commits.

Page: 883 / 5574

March 4, 2020, 10:43 (GMT)
Cleanup: ID make local: remove `id_in_bmain` argument.

This info is now stored in ID tags themselves, so no need to pass an
extra anonymous boolean parameter around, yay!
March 4, 2020, 10:43 (GMT)
Cleanup: Rename 'make local' functions to new scheme.

Also removed some only used locally from the header, `BKE_lib_id.h`
is already way too big, no need to overload it with unused things.
March 4, 2020, 10:38 (GMT)
UI: rename View Selected" to "Frame Selected"

Addresses T74331
March 4, 2020, 10:27 (GMT)
Fix T73797: Selection/Editing after Make Single User for Object Data
fails

Exposed by rB50d5c03e2d14.

This was only a problem when _only_ 'Object Data' was made local.
If also e.g. 'Object' or 'Materials' was checked, these were already
making sure realations were updated [DEG_relations_tag_update(bmain)].

Now also call DEG_relations_tag_update(bmain) for the 'Object Data'
case.

I assume the underlying issue is that there is some ID_NEW_REMAP
happening in 'single_obdata_users()' -- including that for 'me-
>texcomesh', which might be responsible for the glitches in selection/
editing? Also not entirely sure why this wasnt a problem prior to
rB50d5c03e2d14.(I assume this was somewhat hidden by the fact this was
always called with a default action being nothing, the user would always
need to access the redo panel. So this might have been hidden by an Undo
step involved?)

Maniphest Tasks: T73797

Differential Revision: https://developer.blender.org/D7020
March 4, 2020, 10:13 (GMT)
Cleanup: avoid the term old when storing/restoring context variables
March 4, 2020, 04:24 (GMT)
Cleanup: remove unused BLI_strncat_utf8

Behaves differently to strncat,
BLI_strncpy_utf8_rlen can be used for a similar purpose.
March 4, 2020, 04:17 (GMT)
Fix possible buffer overflow from incorrect 'strncat' use

The size argument is the maximum number of bytes to copy,
not the destination buffer size.

Replace with utility function that joins strings.
March 4, 2020, 04:14 (GMT)
BLI_string_utils: add BLI_string_join_array_by_sep_char

Utility to join strings into a fixed size buffer.
March 4, 2020, 00:31 (GMT)
Cleanup: replace CLAMP macros with functions
March 4, 2020, 00:23 (GMT)
BLI_math: inline clamp functions

These are used in some per-pixel operations such as image sampling and
color conversion, where replacing existing macro use could add overhead.
March 4, 2020, 00:05 (GMT)
Cleanup: replace commented code with define check

Avoids duplicated comments,
also quiet warning accessing non-existing variable.
March 4, 2020, 00:02 (GMT)
Cleanup: cmake indentation
March 3, 2020, 23:39 (GMT)
CMake: make OpenVDB depend on OpenEXR

OpenVDB uses 'half' type & fails to link without it.
March 3, 2020, 23:25 (GMT)
BLI_math: add clamp_v# and clamp_v#_v#v# utility functions
March 3, 2020, 18:38 (GMT)
Fix T72028: Crash switching to vertex paint

This would happen when done from editmode, on a mesh with any modifier,
after adding/removing geometry in editmode.

Similar to rBba0870713b9b (which did this for weightpaint and sculpt
already), ensure an evaluated depsgraph, otherwise
'runtime.mesh_deform_eval' would not be up to date causing problems
later.

Maniphest Tasks: T72028

Differential Revision: https://developer.blender.org/D7011
March 3, 2020, 17:41 (GMT)
Modifiers: Wave add invert vgroup option

Adds the invert vgroup option to the Wave modifier.

Differential Revision: https://developer.blender.org/D6893
March 3, 2020, 16:34 (GMT)
IDs: change FILTER_ID_* to 64 bit to make space for new ID types

And change file browser to boolean from bitflag enum, which is only 32 bit.

Differential Revision: https://developer.blender.org/D7004
March 3, 2020, 16:22 (GMT)
IDs: modify wm.previews_clear operator to make space for new ID types

Use a regular enum, to avoid running out of bits.

Differential Revision: https://developer.blender.org/D7003
March 3, 2020, 16:21 (GMT)
RNA: support 64 bit boolean bitflags in DNA

This does not affect the RNA access API, since how the boolean is read from
DNA abstracted away in the API.

Differential Revision: https://developer.blender.org/D7002
March 3, 2020, 16:04 (GMT)
Fix: USD Build error on windows

USD is being included before the blender headers.

USD includes TBB, which includes the windows headers
which define rad2 as a constant conflicting with a field
with that exact name in the MetaElem dna struct.

Added `-DWIN32_LEAN_AND_MEAN` to keep the windows headers
from defining rad2.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021