Depsgraph: Another followup to the previous commit

Apparently, only mesh objects has SHADING component.
This commit is contained in:
Sergey Sharybin 2018-09-19 18:03:15 +02:00
parent e60492b6fb
commit a7d43eb1c6
1 changed files with 1 additions and 1 deletions

View File

@ -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,