Fix #107506: Depsgraph: non-geometry component is treated as geometry component

Pull Request: https://projects.blender.org/blender/blender/pulls/107509
This commit is contained in:
illua1
2023-05-08 18:51:15 +02:00
committed by Jacques Lucke
parent 527b21f0ae
commit 07ac8cb15a

View File

@@ -96,7 +96,7 @@ void DEG_add_object_relation(DepsNodeHandle *node_handle,
bool DEG_object_has_geometry_component(Object *object)
{
return deg::geometry_tag_to_component(&object->id) != deg::NodeType::UNDEFINED;
return deg::geometry_tag_to_component(&object->id) == deg::NodeType::GEOMETRY;
}
void DEG_add_collection_geometry_relation(DepsNodeHandle *node_handle,