diff options
author | Martin Poirier <theeth@yahoo.com> | 2008-05-01 22:16:21 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2008-05-01 22:16:21 +0400 |
commit | 8c1b594ed3971059ef9ba27ddc429fe846320acc (patch) | |
tree | 700781ea59a422a2cecdcbe5f1cd7fa38775eadc /source | |
parent | 0d1aa8d7bfc83162dc14616e4d588939d9361ba1 (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')
-rw-r--r-- | source/blender/src/editcurve.c | 12 |
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); |