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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2015-03-23 11:06:16 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2015-03-23 11:06:47 +0300
commitb1a53b343db65812416f5a877317a5e6bb69afa0 (patch)
treeea46d290f06f5b88800a530a9b1e28e0bcc3fbdb /io_anim_c3d
parent251c133fb72cd4c44abb2f4f045dcf83bd1b27fb (diff)
C3D importer: updated property descriptions and scaling values
The minimum value for the 'scale' property has been decreased, allowing even smaller scales (some C3D files use huge coordinates). The effect of the 'from_inches' property has been changed to match its description. Reviewed by: dmbasso Differential: D1195
Diffstat (limited to 'io_anim_c3d')
-rw-r--r--io_anim_c3d/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/io_anim_c3d/__init__.py b/io_anim_c3d/__init__.py
index 0db29ba1..0f501ad8 100644
--- a/io_anim_c3d/__init__.py
+++ b/io_anim_c3d/__init__.py
@@ -110,10 +110,10 @@ class C3DImporter(bpy.types.Operator):
Y_up = BoolProperty(
name="Up vector is Y axis",
default=False,
- description="Convert to Blender coordinates",
+ description="Check when the data uses Y-up, uncheck when it uses Z-up",
)
from_inches = BoolProperty(
- name="Convert from inches to metric",
+ name="Convert from inches to meters",
default=False,
description="Scale by 2.54/100",
)
@@ -121,7 +121,7 @@ class C3DImporter(bpy.types.Operator):
name="Scale",
default=1.0,
description="Scale the positions by this value",
- min=0.0001, max=1000000.0,
+ min=0.0000001, max=1000000.0,
soft_min=0.001, soft_max=100.0,
)
auto_scale = BoolProperty(
@@ -229,7 +229,7 @@ class C3DImporter(bpy.types.Operator):
# determine the final scale
height = self.find_height(ms)
#print('h', height)
- scale = 1.0 if not self.properties.from_inches else 2.54
+ scale = 1.0 if not self.properties.from_inches else 0.0254
scale *= ms.scale
if self.properties.auto_magnitude:
scale = self.adjust_scale_magnitude(height, scale)