diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-14 13:26:49 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-14 15:43:56 +0300 |
commit | 95f257395e0f0322ce539671dee1370e5b081cd4 (patch) | |
tree | cdb72f23078ad92d693cf1033de7cc8f927b7203 /source/blender/depsgraph/intern/builder/deg_builder_nodes.h | |
parent | 06c0febe7094a5caee731edebde300f5dabf2d8c (diff) |
Depsgraph: Make indirectly linked objects inherit visibility from parent
This way objects which are pulled into dependency graph via modifier
stack from an invisible object will be invisible.
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder_nodes.h')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_nodes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes.h b/source/blender/depsgraph/intern/builder/deg_builder_nodes.h index 5c9ddde8c5a..35e81de8304 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_nodes.h +++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes.h @@ -241,6 +241,8 @@ protected: struct BuilderWalkUserData { DepsgraphNodeBuilder *builder; + /* Denotes whether object the walk is invoked from is visible. */ + bool is_parent_visible; }; static void modifier_walk(void *user_data, struct Object *object, |