[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48309] trunk/blender/source/blender/ editors/curve/editcurve.c: Fix issue with resetting active nurb when sawing from edit mode

Sergey Sharybin sergey.vfx at gmail.com
Tue Jun 26 12:18:53 CEST 2012


Revision: 48309
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48309
Author:   nazgul
Date:     2012-06-26 10:18:53 +0000 (Tue, 26 Jun 2012)
Log Message:
-----------
Fix issue with resetting active nurb when sawing from edit mode

Issue was caused by loading editNurb into normal nurbs when saving,
this used to set active nurb to NULL.

This isn't actually needed, because active nurb would be set properly
on making editNurb and even if one accessed to active spline via PY API
when object is in object it'll be completely harmless.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/curve/editcurve.c

Modified: trunk/blender/source/blender/editors/curve/editcurve.c
===================================================================
--- trunk/blender/source/blender/editors/curve/editcurve.c	2012-06-26 10:17:11 UTC (rev 48308)
+++ trunk/blender/source/blender/editors/curve/editcurve.c	2012-06-26 10:18:53 UTC (rev 48309)
@@ -1199,8 +1199,6 @@
 
 	if (obedit == NULL) return;
 
-	set_actNurb(obedit, NULL);
-
 	if (ELEM(obedit->type, OB_CURVE, OB_SURF)) {
 		Curve *cu = obedit->data;
 		Nurb *nu, *newnu;
@@ -1222,8 +1220,6 @@
 
 		BKE_nurbList_free(&oldnurb);
 	}
-
-	set_actNurb(obedit, NULL);
 }
 
 /* make copy in cu->editnurb */
@@ -1234,7 +1230,6 @@
 	Nurb *nu, *newnu, *nu_act = NULL;
 	KeyBlock *actkey;
 
-
 	set_actNurb(obedit, NULL);
 
 	if (ELEM(obedit->type, OB_CURVE, OB_SURF)) {




More information about the Bf-blender-cvs mailing list