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:
authorDaniel Dunbar <daniel@zuster.org>2005-07-23 23:15:08 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-07-23 23:15:08 +0400
commite331e68b571b0b72de1c4636209d038c4f679631 (patch)
treed66238bfebcfd7b92d96621d4b4d56803f1c43a0 /source/blender/src/editmesh_lib.c
parentfb651ddb4a47d86312a4afafaa48e1bf4e48447f (diff)
- added ModifierData flag, is modifier enabled in editmode
- added modifier type flag: should modifier be enabled by default for active in editmode - added subsurf "debug incremental" option instead of G.rt==52 (it becomes a slightly useful feature now for debugging how well a modifier works with incremental subsurf... maybe important for future python modifier developers) - shuffled modifier button layout just to keep people guessing - switched back to drawing editmesh face centers not through derivedmesh, I didn't think this one through, forgot that centers were also used for selection. have to think about what to do about this, should be either (a) don't draw centers with a cage active (optimal mode) or (b) come up with api to draw centers through derivedmesh and also handle selection. - changed recalc_editnormals to also follow the len(no)==0.0 use vertex co convention
Diffstat (limited to 'source/blender/src/editmesh_lib.c')
-rw-r--r--source/blender/src/editmesh_lib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/editmesh_lib.c b/source/blender/src/editmesh_lib.c
index 677aa070788..7776b507533 100644
--- a/source/blender/src/editmesh_lib.c
+++ b/source/blender/src/editmesh_lib.c
@@ -1370,7 +1370,10 @@ void recalc_editnormals(void)
}
for(eve= em->verts.first; eve; eve=eve->next) {
- Normalise(eve->no);
+ if (Normalise(eve->no)==0.0) {
+ VECCOPY(eve->no, eve->co);
+ Normalise(eve->no);
+ }
}
}