diff options
author | Jacques Lucke <jacques@blender.org> | 2021-04-09 11:07:49 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-04-09 11:07:49 +0300 |
commit | 22574f741c4e4d142c7068316296d24bbfc2a12c (patch) | |
tree | 8d4400ec551098fb3e5d33d271e1c68a846d1795 /source/blender/modifiers | |
parent | 21102395472ddb77572944cff337f6deb68fcc7e (diff) |
Geometry Nodes: quiet warning when using object info node
Some object types don't have a geometry component in the depsgraph.
Before, there always was a warning printed when such an object was
used in the object info node (e.g. to get its location).
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_nodes.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc index 96986c7bd83..4fc940b3244 100644 --- a/source/blender/modifiers/intern/MOD_nodes.cc +++ b/source/blender/modifiers/intern/MOD_nodes.cc @@ -173,7 +173,7 @@ static void add_object_relation(const ModifierUpdateDepsgraphContext *ctx, Objec add_collection_object_relations_recursive(ctx, *collection_instance); } } - else { + else if (ELEM(object.type, OB_MESH, OB_POINTCLOUD, OB_VOLUME)) { DEG_add_object_relation(ctx->node, &object, DEG_OB_COMP_GEOMETRY, "Nodes Modifier"); } } |