[Bf-extensions-cvs] [81539bf] master: Fix T43719: STL Import Script Scale option is strongly limited

Bastien Montagne noreply at git.blender.org
Fri Feb 20 10:07:24 CET 2015


Commit: 81539bf9c200602975610a032f63ad8e03bbeb77
Author: Bastien Montagne
Date:   Fri Feb 20 10:06:07 2015 +0100
Branches: master
https://developer.blender.org/rBA81539bf9c200602975610a032f63ad8e03bbeb77

Fix T43719: STL Import Script Scale option is strongly limited

Soft min/max are now 1e(-)3, hard ones are now 1e(-)6...

===================================================================

M	io_mesh_stl/__init__.py

===================================================================

diff --git a/io_mesh_stl/__init__.py b/io_mesh_stl/__init__.py
index 975e52b..56d5628 100644
--- a/io_mesh_stl/__init__.py
+++ b/io_mesh_stl/__init__.py
@@ -21,7 +21,7 @@
 bl_info = {
     "name": "STL format",
     "author": "Guillaume Bouchard (Guillaum)",
-    "version": (1, 1),
+    "version": (1, 1, 1),
     "blender": (2, 73, 0),
     "location": "File > Import-Export > Stl",
     "description": "Import-Export STL files",
@@ -93,7 +93,8 @@ class ImportSTL(Operator, ImportHelper, OrientationHelper):
 
     global_scale = FloatProperty(
             name="Scale",
-            min=0.01, max=1000.0,
+            soft_min=0.001, soft_max=1000.0,
+            min=1e-6, max=1e6,
             default=1.0,
             )



More information about the Bf-extensions-cvs mailing list