Commit: d5408d7b132716e26cfa03b93a5ef5b6d6dc86ce
Author: Lukas Tönne
Date: Fri May 27 09:06:39 2016 +0200
Branches: object_nodes
https://developer.blender.org/rBd5408d7b132716e26cfa03b93a5ef5b6d6dc86ce
Another depsgraph fix, internal texture relations need to be built explicitly.
Like node trees, textures are only optionally constructed in the depsgraph when
something
uses them. When a modifier (or other potential future user of the "handle"
system)
declares a texture dependency, the internal relations of that texture are not
necessarily built -
this only happens when the texture is part of a material texture stack. So we
need to also
construct the internal texture relations (lazy init) in addition to the
external modifier->texture
dependency.
===================================================================
M source/blender/depsgraph/intern/depsgraph_build_relations.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cc
b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
index b1a4cdd..1b6d608 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cc
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
@@ -135,6 +135,9 @@ struct DepsgraphRelationBuilderHandle
{
DepsgraphRelationBuilderHandle *handle =
(DepsgraphRelationBuilderHandle *)_handle;
ComponentKey comp_key(&tex->id, component);
+
+ handle->builder->build_texture(NULL, tex);
+
handle->builder->add_node_relation(comp_key, handle->node,
DEPSREL_TYPE_STANDARD, description);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs