[Bf-blender-cvs] [806db47fd8d] master: Depsgraoh: Fix missing texture node allocation

Sergey Sharybin noreply at git.blender.org
Thu May 28 10:59:26 CEST 2020


Commit: 806db47fd8dfc228467694f10743a4404796dce0
Author: Sergey Sharybin
Date:   Thu May 28 10:44:07 2020 +0200
Branches: master
https://developer.blender.org/rB806db47fd8dfc228467694f10743a4404796dce0

Depsgraoh: Fix missing texture node allocation

It was causing wrong binding for image animation: since there was no
ID node for texture at the moment of build_animdata original texture
ID was passed to the callback. This is not what is supposed to happen.

This is part of fix for T65889.

===================================================================

M	source/blender/depsgraph/intern/builder/deg_builder_nodes.cc

===================================================================

diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
index 7a562190cfd..9230fa19c32 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
@@ -1581,6 +1581,7 @@ void DepsgraphNodeBuilder::build_texture(Tex *texture)
     return;
   }
   /* Texture itself. */
+  add_id_node(&texture->id);
   build_idproperties(texture->id.properties);
   build_animdata(&texture->id);
   build_parameters(&texture->id);



More information about the Bf-blender-cvs mailing list