Fix #118034: Cycles: Driven View Layer property not considered in realtime
The issue was caused by Cycles doing dependency tracking on its side, relying on the fact that view layer needs to be tagged as modified when its properties change. This was not the case when custom property on the a view layer is modified via a driver. Now the dependency graph will tag IDs which generic properties did change as ID_RECALC_PARAMETERS, giving it a chance to render engines to react to it. Since this is quite generic code which might have unforeseen side effects the change is not targeted to the current release branch. Note that this chaneg does not fix the #103140, as the issue there is use of RNA path to another data-block, without the node tree registering relation to that data-block. Pull Request: https://projects.blender.org/blender/blender/pulls/118134
This commit is contained in:
committed by
Sergey Sharybin
parent
0bf9b10a93
commit
18b594075c
@@ -323,7 +323,7 @@ DEG_COMPONENT_NODE_DEFINE(CopyOnWrite, COPY_ON_WRITE, ID_RECALC_COPY_ON_WRITE);
|
||||
DEG_COMPONENT_NODE_DEFINE(ImageAnimation, IMAGE_ANIMATION, 0);
|
||||
DEG_COMPONENT_NODE_DEFINE(Geometry, GEOMETRY, ID_RECALC_GEOMETRY);
|
||||
DEG_COMPONENT_NODE_DEFINE(LayerCollections, LAYER_COLLECTIONS, 0);
|
||||
DEG_COMPONENT_NODE_DEFINE(Parameters, PARAMETERS, 0);
|
||||
DEG_COMPONENT_NODE_DEFINE(Parameters, PARAMETERS, ID_RECALC_PARAMETERS);
|
||||
DEG_COMPONENT_NODE_DEFINE(Particles, PARTICLE_SYSTEM, ID_RECALC_GEOMETRY);
|
||||
DEG_COMPONENT_NODE_DEFINE(ParticleSettings, PARTICLE_SETTINGS, 0);
|
||||
DEG_COMPONENT_NODE_DEFINE(PointCache, POINT_CACHE, 0);
|
||||
|
||||
Reference in New Issue
Block a user