Commit: 2b43ec56af2a02ff0be1e128b63261bb57cda100
Author: Sergey Sharybin
Date:   Tue Jul 9 11:24:39 2019 +0200
Branches: master
https://developer.blender.org/rB2b43ec56af2a02ff0be1e128b63261bb57cda100

Fix T66274: Object Texture Coordinate mode not updating in Lookdev / Eevee

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

M       source/blender/makesrna/intern/rna_nodetree.c

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

diff --git a/source/blender/makesrna/intern/rna_nodetree.c 
b/source/blender/makesrna/intern/rna_nodetree.c
index 5f156864479..eec280a5f3e 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -1711,6 +1711,12 @@ static void rna_Node_update(Main *bmain, Scene 
*UNUSED(scene), PointerRNA *ptr)
   ED_node_tag_update_nodetree(bmain, ntree, node);
 }
 
+static void rna_Node_update_relations(Main *bmain, Scene *scene, PointerRNA 
*ptr)
+{
+  rna_Node_update(bmain, scene, ptr);
+  DEG_relations_tag_update(bmain);
+}
+
 static void rna_Node_socket_value_update(ID *id, bNode *node, bContext *C)
 {
   ED_node_tag_update_nodetree(CTX_data_main(C), (bNodeTree *)id, node);
@@ -4458,7 +4464,7 @@ static void def_sh_tex_coord(StructRNA *srna)
   RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_REFCOUNT);
   RNA_def_property_ui_text(
       prop, "Object", "Use coordinates from this object (for object texture 
coordinates output)");
-  RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
+  RNA_def_property_update(prop, NC_NODE | NA_EDITED, 
"rna_Node_update_relations");
 
   prop = RNA_def_property(srna, "from_instancer", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_sdna(prop, NULL, "custom1", 1);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to