diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-07-09 12:24:39 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-07-09 12:24:39 +0300 |
commit | 2b43ec56af2a02ff0be1e128b63261bb57cda100 (patch) | |
tree | db4138b84df2744442efa58fddab2f052a019d6b /source/blender/makesrna | |
parent | 516afd0162cd2e217ec50ce522f87317b73f0088 (diff) |
Fix T66274: Object Texture Coordinate mode not updating in Lookdev / Eevee
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 8 |
1 files changed, 7 insertions, 1 deletions
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); |