Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2008-05-01 22:16:21 +0400
committerMartin Poirier <theeth@yahoo.com>2008-05-01 22:16:21 +0400
commit8c1b594ed3971059ef9ba27ddc429fe846320acc (patch)
tree700781ea59a422a2cecdcbe5f1cd7fa38775eadc /source/blender/src/editcurve.c
parent0d1aa8d7bfc83162dc14616e4d588939d9361ba1 (diff)
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.
Diffstat (limited to 'source/blender/src/editcurve.c')
-rw-r--r--source/blender/src/editcurve.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/src/editcurve.c b/source/blender/src/editcurve.c
index d9bc55fa8bf..34dcab09c2a 100644
--- a/source/blender/src/editcurve.c
+++ b/source/blender/src/editcurve.c
@@ -4316,8 +4316,10 @@ Nurb *addNurbprim(int type, int stype, int newname)
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 @@ Nurb *addNurbprim(int type, int stype, int newname)
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);