[Bf-blender-cvs] [fa41350c720] blender2.8: UV pin: Use ID_RECALC_COPY_ON_WRITE instead of the almighty 0

Dalai Felinto noreply at git.blender.org
Fri Dec 14 23:34:17 CET 2018


Commit: fa41350c720b56ecfd3fca0be4c0f7cce5a96c96
Author: Dalai Felinto
Date:   Fri Dec 14 20:33:29 2018 -0200
Branches: blender2.8
https://developer.blender.org/rBfa41350c720b56ecfd3fca0be4c0f7cce5a96c96

UV pin: Use ID_RECALC_COPY_ON_WRITE instead of the almighty 0

I suppose the cow tag is more correct for those generic/non-specific
tags. Thank you Sergey.

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

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 7683f704008..bb0c11b171b 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -3969,7 +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);
+			DEG_id_tag_update(obedit->data, ID_RECALC_COPY_ON_WRITE);
 		}
 	}
 	MEM_freeN(objects);



More information about the Bf-blender-cvs mailing list