[Bf-blender-cvs] [46bf079b7f4] blender2.8: Fix error checking on curve duplication

Dalai Felinto noreply at git.blender.org
Tue Oct 30 22:59:58 CET 2018


Commit: 46bf079b7f4c28a69861194b1783ae286ed66790
Author: Dalai Felinto
Date:   Tue Oct 30 18:57:13 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB46bf079b7f4c28a69861194b1783ae286ed66790

Fix error checking on curve duplication

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

M	source/blender/editors/curve/editcurve.c

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

diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c
index 81d20740210..4ba765efa46 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -5386,7 +5386,6 @@ static int duplicate_exec(bContext *C, wmOperator *op)
 		Curve *cu = obedit->data;
 
 		if (!ED_curve_select_check(v3d, cu->editnurb)) {
-			ok = MAX2(ok, 0);
 			continue;
 		}
 
@@ -5394,6 +5393,7 @@ static int duplicate_exec(bContext *C, wmOperator *op)
 		adduplicateflagNurb(obedit, v3d, &newnurb, SELECT, false);
 
 		if (BLI_listbase_is_empty(&newnurb)) {
+			ok = MAX2(ok, 0);
 			continue;
 		}



More information about the Bf-blender-cvs mailing list