mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Depsgraph: Another followup to the previous commit
Apparently, only mesh objects has SHADING component.
This commit is contained in:
parent
e60492b6fb
commit
a7d43eb1c6
1 changed files with 1 additions and 1 deletions
|
|
@ -1899,7 +1899,7 @@ void DepsgraphRelationBuilder::build_object_data_geometry(Object *object)
|
|||
add_relation(geom_init_key,
|
||||
obdata_ubereval_key,
|
||||
"Object Geometry UberEval");
|
||||
if (object->totcol != 0) {
|
||||
if (object->totcol != 0 && object->type == OB_MESH) {
|
||||
ComponentKey object_shading_key(&object->id, DEG_NODE_TYPE_SHADING);
|
||||
DepsRelation *rel = add_relation(obdata_ubereval_key,
|
||||
object_shading_key,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue