[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14645] trunk/blender/source/blender/src/ editcurve.c: Surface bugfix (reported by jms on the french newsgroup)

Martin Poirier theeth at yahoo.com
Thu May 1 20:16:23 CEST 2008


Revision: 14645
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14645
Author:   theeth
Date:     2008-05-01 20:16:21 +0200 (Thu, 01 May 2008)

Log Message:
-----------
Surface bugfix (reported by jms on the french newsgroup)

Adding Donut or Sphere surfaces with the Align to View option turned on added broken surfaces.

Those two surface type were always aligned in the past and their creation method were not made to deal with this. Fixed now (that is, they are aligned to view and created correctly if the option is on).

There might be other cases of this bug elsewhere.

Modified Paths:
--------------
    trunk/blender/source/blender/src/editcurve.c

Modified: trunk/blender/source/blender/src/editcurve.c
===================================================================
--- trunk/blender/source/blender/src/editcurve.c	2008-05-01 17:31:01 UTC (rev 14644)
+++ trunk/blender/source/blender/src/editcurve.c	2008-05-01 18:16:21 UTC (rev 14645)
@@ -4316,8 +4316,10 @@
 			makeknots(nu, 1, nu->flagu>>1);
 
 			BLI_addtail(&editNurb, nu); /* temporal for spin */
-			if(newname) spin_nurb(0, 2);
-			else spin_nurb(0, 0);
+			if(newname && (U.flag & USER_ADD_VIEWALIGNED) == 0)
+				spin_nurb(0, 2);
+			else
+				spin_nurb(0, 0);
 
 			makeknots(nu, 2, nu->flagv>>1);
 
@@ -4344,8 +4346,10 @@
 			nu->resolv= 32;
 			nu->flag= CU_SMOOTH;
 			BLI_addtail(&editNurb, nu); /* temporal for extrude and translate */
-			if(newname) spin_nurb(0, 2);
-			else spin_nurb(0, 0);
+			if(newname && (U.flag & USER_ADD_VIEWALIGNED) == 0)
+				spin_nurb(0, 2);
+			else
+				spin_nurb(0, 0);
 
 			BLI_remlink(&editNurb, nu);
 





More information about the Bf-blender-cvs mailing list