Blender Git Commit Log

Git Commits -> Revision 6899dbe

Revision 6899dbe by Alexander Gavrilov (master)
May 3, 2021, 11:02 (GMT)
LibOverride: temporarily fix the material driver workaround with a hack.

Currently overriding properties within material node trees is not
supported. However there is a workaround that allows feeding values
through drivers via an intermediate custom property, as described
in T82404. The workaround relies on the behavior of the ID copying
code that always patches datablock self-references even without any
overrides.

Unfortunately, this broke during development of 2.93. This happened
because a call RNA_struct_override_matches added in rB2281db72b0157
detects that no override exists, and 'restores' the self-reference
to point to the original datablock.

To avoid this, mark the Material.node_tree property with the
PROPOVERRIDE_IGNORE flag to stop RNA_struct_override_matches
from recursing into the currently unsupported node tree sub-block.
This flag should be removed when this is properly supported.

This was confirmed to fix the workaround and discussed with @mont29.

Commit Details:

Full Hash: 6899dbef77cd26df3588888040887e4e41c1ec43
Parent Commit: a53d34a
Lines Changed: +2, -0

1 Modified Path:

/source/blender/makesrna/intern/rna_material.c (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021