diff options
author | Jacques Lucke <jacques@blender.org> | 2021-05-26 17:06:01 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-05-26 17:06:01 +0300 |
commit | ba5b4d1bd68e8b9a12279d8be9e6d84f496bd44b (patch) | |
tree | 95538c8a88e8e8363143a2d036200bc1a2cd3978 /source/blender/depsgraph/intern/depsgraph_build.cc | |
parent | ebde6e1852622d60d1cd574f1c7e2d6855ae90ba (diff) |
Fix T88250: crash when instancing object in disabled collection
This issue was that `BKE_object_eval_uber_data` was not called for
the text object, because its geometry was not dependent upon
and its `is_directly_visible` tag was `false`. The crash happens in
rendering code, because the evaluated data is missing.
This not only affects text objects, but all object types that have a
geometry component that geometry nodes does not support yet.
The solution is to just add the missing dependencies.
Differential Revision: https://developer.blender.org/D11385
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_build.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_build.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_build.cc b/source/blender/depsgraph/intern/depsgraph_build.cc index 6c1e91d068b..9e9191c5ab9 100644 --- a/source/blender/depsgraph/intern/depsgraph_build.cc +++ b/source/blender/depsgraph/intern/depsgraph_build.cc @@ -62,6 +62,7 @@ #include "intern/depsgraph_registry.h" #include "intern/depsgraph_relation.h" +#include "intern/depsgraph_tag.h" #include "intern/depsgraph_type.h" /* ****************** */ @@ -109,6 +110,11 @@ void DEG_add_object_relation(DepsNodeHandle *node_handle, deg_node_handle->builder->add_node_handle_relation(comp_key, deg_node_handle, description); } +bool DEG_object_has_geometry_component(Object *object) +{ + return deg::geometry_tag_to_component(&object->id) != deg::NodeType::UNDEFINED; +} + void DEG_add_collection_geometry_relation(DepsNodeHandle *node_handle, Collection *collection, const char *description) |