diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-08 19:30:28 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-09 12:33:43 +0300 |
commit | 449687d50aab1d0947373263c386ba30166d318e (patch) | |
tree | c37278536b0cd584d140a5ba028485fbaf7d8b94 /source | |
parent | 087331c495b04ebd37903c0dc0e46262354cf026 (diff) |
Depsgraph: Assert when node uses unhandled ID type
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_nodes.cc | 3 | ||||
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations.cc | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc index 10da33fc0dd..26b3460e741 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc @@ -976,6 +976,9 @@ void DepsgraphNodeBuilder::build_nodetree(bNodeTree *ntree) build_nodetree(group_ntree); } } + else { + BLI_assert(!"Unknown ID type used for node"); + } } } diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc index 3854850e778..f0368998796 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc @@ -1736,6 +1736,9 @@ void DepsgraphRelationBuilder::build_nodetree(bNodeTree *ntree) DEG_OPCODE_PARAMETERS_EVAL); add_relation(group_parameters_key, parameters_key, "Group Node"); } + else { + BLI_assert(!"Unknown ID type used for node"); + } } } |