[Bf-blender-cvs] [5a156fd1098] blender2.8: Cleanup style :|

Dalai Felinto noreply at git.blender.org
Tue Oct 30 22:48:34 CET 2018


Commit: 5a156fd10985b463d5470cf6b2e0f95695a19fca
Author: Dalai Felinto
Date:   Tue Oct 30 18:44:26 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB5a156fd10985b463d5470cf6b2e0f95695a19fca

Cleanup style :|

So much for saving time by copying existing patches from phabricator.

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

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

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

diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c
index e7478b3253d..81d20740210 100644
--- a/source/blender/editors/curve/editcurve.c
+++ b/source/blender/editors/curve/editcurve.c
@@ -5375,15 +5375,15 @@ void CURVE_OT_cyclic_toggle(wmOperatorType *ot)
 
 static int duplicate_exec(bContext *C, wmOperator *op)
 {
-	ViewLayer * view_layer = CTX_data_view_layer(C);
+	ViewLayer *view_layer = CTX_data_view_layer(C);
 	View3D *v3d = CTX_wm_view3d(C);
 	int ok = -1;
 
 	uint objects_len = 0;
-	Object * *objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data(view_layer, &objects_len);
+	Object **objects = BKE_view_layer_array_from_objects_in_edit_mode_unique_data(view_layer, &objects_len);
 	for (uint ob_index = 0; ob_index < objects_len; ob_index++) {
-		Object * obedit = objects[ob_index];
-		Curve * cu = obedit->data;
+		Object *obedit = objects[ob_index];
+		Curve *cu = obedit->data;
 
 		if (!ED_curve_select_check(v3d, cu->editnurb)) {
 			ok = MAX2(ok, 0);
@@ -5399,8 +5399,8 @@ static int duplicate_exec(bContext *C, wmOperator *op)
 
 		ok = 1;
 		BLI_movelisttolist(object_editcurve_get(obedit), &newnurb);
-		DEG_id_tag_update(obedit->data, DEG_TAG_SELECT_UPDATE);
-		WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data);
+		DEG_id_tag_update(&cu->id, DEG_TAG_SELECT_UPDATE);
+		WM_event_add_notifier(C, NC_GEOM | ND_SELECT, &cu->id);
 	}
 	MEM_freeN(objects);



More information about the Bf-blender-cvs mailing list