[Bf-blender-cvs] [a63209e1754] blender2.8: Fix T59381: UV editor - Pinned vertex missing update

Dalai Felinto noreply at git.blender.org
Fri Dec 14 22:55:23 CET 2018


Commit: a63209e175444938731a248253f859b438bc467b
Author: Dalai Felinto
Date:   Fri Dec 14 19:47:46 2018 -0200
Branches: blender2.8
https://developer.blender.org/rBa63209e175444938731a248253f859b438bc467b

Fix T59381: UV editor - Pinned vertex missing update

Pinning doesn't really change the geometry, so we don't really have a
tag for this. Using '0' for now (same we use for Mark Seam).

I will check with Sergey Sharybin which flag to use instead.
We could use ID_RECALC_GEOMETRY to match the notifier, but even the
simpler ID_RECALC_SELECT would do it.

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

M	source/blender/editors/uvedit/uvedit_ops.c

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

diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c
index 54909610850..7683f704008 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -3969,6 +3969,7 @@ static int uv_pin_exec(bContext *C, wmOperator *op)
 
 		if (changed) {
 			WM_event_add_notifier(C, NC_GEOM | ND_DATA, obedit->data);
+			DEG_id_tag_update(obedit->data, 0);
 		}
 	}
 	MEM_freeN(objects);



More information about the Bf-blender-cvs mailing list