Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-09-19 19:03:15 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-09-19 19:03:15 +0300
commita7d43eb1c6e1679d4bdf15a9f558f2dbf0fb5b24 (patch)
treefb92711bf663206269c23cf709d837494d95111d /source/blender
parente60492b6fb5eb4330c2d013422c46fdd7ca560ff (diff)
Depsgraph: Another followup to the previous commit
Apparently, only mesh objects has SHADING component.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_relations.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index c17277beca1..b47ed4638ad 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -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,