[Bf-extensions-cvs] [2391d50] master: Moar style & UI messages cleanup...

Bastien Montagne noreply at git.blender.org
Tue Nov 10 12:08:04 CET 2015


Commit: 2391d5041b3ff02967d487611b6c1afafc211e8e
Author: Bastien Montagne
Date:   Tue Nov 10 12:07:45 2015 +0100
Branches: master
https://developer.blender.org/rBA2391d5041b3ff02967d487611b6c1afafc211e8e

Moar style & UI messages cleanup...

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

M	io_anim_bvh/__init__.py
M	io_anim_bvh/import_bvh.py

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

diff --git a/io_anim_bvh/__init__.py b/io_anim_bvh/__init__.py
index 5ecd902..27c8003 100644
--- a/io_anim_bvh/__init__.py
+++ b/io_anim_bvh/__init__.py
@@ -87,21 +87,19 @@ class ImportBVH(bpy.types.Operator, ImportHelper, ImportBVHOrientationHelper):
             )
     use_fps_scale = BoolProperty(
             name="Scale FPS",
-            description=("Scale the framerate from the BVH to "
-                         "the current scenes, otherwise each "
-                         "BVH frame maps directly to a Blender frame"),
+            description=("Scale the framerate from the BVH to the current scenes, "
+                         "otherwise each BVH frame maps directly to a Blender frame"),
             default=False,
             )
     update_scene_fps = BoolProperty(
-            name="Update scene framerate",
-            description="Sets the scene framerate to that of the BVH file. Note that this "
-                        "nullifies the 'Scale FPS' option, as the scale will be 1:1",
+            name="Update Scene FPS",
+            description="Set the scene framerate to that of the BVH file (note that this "
+                        "nullifies the 'Scale FPS' option, as the scale will be 1:1)",
             default=False
             )
     update_scene_duration = BoolProperty(
-            name="Update scene duration",
-            description="Extend the scene's duration to the BVH duration. Does not shorten scene "
-                        "when the BVH fits in its entirety",
+            name="Update Scene Duration",
+            description="Extend the scene's duration to the BVH duration (never shortens the scene)",
             default=False,
             )
     use_cyclic = BoolProperty(
@@ -114,8 +112,8 @@ class ImportBVH(bpy.types.Operator, ImportHelper, ImportBVHOrientationHelper):
             description="Rotation conversion",
             items=(('QUATERNION', "Quaternion",
                     "Convert rotations to quaternions"),
-                   ('NATIVE', "Euler (Native)", ("Use the rotation order "
-                                                 "defined in the BVH file")),
+                   ('NATIVE', "Euler (Native)",
+                              "Use the rotation order defined in the BVH file"),
                    ('XYZ', "Euler (XYZ)", "Convert rotations to euler XYZ"),
                    ('XZY', "Euler (XZY)", "Convert rotations to euler XZY"),
                    ('YXZ', "Euler (YXZ)", "Convert rotations to euler YXZ"),
@@ -174,7 +172,7 @@ class ExportBVH(bpy.types.Operator, ExportHelper):
             name="Rotation",
             description="Rotation conversion",
             items=(('NATIVE', "Euler (Native)",
-                    "Use the rotation order defined in the BVH file"),
+                              "Use the rotation order defined in the BVH file"),
                    ('XYZ', "Euler (XYZ)", "Convert rotations to euler XYZ"),
                    ('XZY', "Euler (XZY)", "Convert rotations to euler XZY"),
                    ('YXZ', "Euler (YXZ)", "Convert rotations to euler YXZ"),
diff --git a/io_anim_bvh/import_bvh.py b/io_anim_bvh/import_bvh.py
index 7549c1f..df733a7 100644
--- a/io_anim_bvh/import_bvh.py
+++ b/io_anim_bvh/import_bvh.py
@@ -637,7 +637,7 @@ def load(context,
 
     # Broken BVH handling: guess frame rate when it is not contained in the file.
     if bvh_frame_time is None:
-        report({'WARNING'}, "The BVH file did not contain frame duration in its MOTION "
+        report({'WARNING'}, "The BVH file does not contain frame duration in its MOTION "
                             "section, assuming the BVH and Blender scene have the same "
                             "frame rate")
         bvh_frame_time = scene.render.fps_base / scene.render.fps



More information about the Bf-extensions-cvs mailing list