Requested by Stephane SOPPERA,
authorKent Mein <mein@cs.umn.edu>
Tue, 4 Jan 2005 14:34:28 +0000 (14:34 +0000)
committerKent Mein <mein@cs.umn.edu>
Tue, 4 Jan 2005 14:34:28 +0000 (14:34 +0000)
Made NMESH_SUBDIV_MIN 0 instead of 1 so NMesh is like the gui...

Kent

source/blender/python/api2_2x/NMesh.c

index 9b11d783af4e298eea4b44d90607e1aceaf1226d..354e73031341fea0bbda418fdc71344c2f3b7445 100644 (file)
 
 /* EXPP Mesh defines */
 
-#define EXPP_NMESH_MODE_NOPUNOFLIP     ME_NOPUNOFLIP
+#define EXPP_NMESH_MODE_NOPUNOFLIP             ME_NOPUNOFLIP
 #define EXPP_NMESH_MODE_TWOSIDED               ME_TWOSIDED
-#define EXPP_NMESH_MODE_AUTOSMOOTH     ME_AUTOSMOOTH
+#define EXPP_NMESH_MODE_AUTOSMOOTH             ME_AUTOSMOOTH
 #define EXPP_NMESH_MODE_SUBSURF                        ME_SUBSURF
 #define EXPP_NMESH_MODE_OPTIMAL                        ME_OPT_EDGES
 
 #define NMESH_FRAME_MAX                                18000
 #define NMESH_SMOOTHRESH                       30
-#define NMESH_SMOOTHRESH_MIN   1
-#define NMESH_SMOOTHRESH_MAX   80
-#define NMESH_SUBDIV                                   1
-#define NMESH_SUBDIV_MIN                       1
+#define NMESH_SMOOTHRESH_MIN                   1
+#define NMESH_SMOOTHRESH_MAX                   80
+#define NMESH_SUBDIV                           1
+#define NMESH_SUBDIV_MIN                       0
 #define NMESH_SUBDIV_MAX                       6
 
 /* Globals */
@@ -224,7 +224,7 @@ static char NMesh_getSubDivLevels_doc[] =
 
 static char NMesh_setSubDivLevels_doc[] =
        "([int, int]) - set the subdivision levels for [display, render] -- they are\n\
-clamped to the range [1,6].";
+clamped to the range [0,6].";
 
 static char M_NMesh_New_doc[] =
        "() - returns a new, empty NMesh mesh object\n";