[Bf-extensions-cvs] [68d58317] blender-v2.83-release: glTF exporter: improve NLA Strip option's name/description

Julien Duroure noreply at git.blender.org
Mon May 4 16:36:39 CEST 2020


Commit: 68d5831729bf9db6a0403f1d6ce9fe6cf547cf1f
Author: Julien Duroure
Date:   Mon May 4 16:36:08 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rBA68d5831729bf9db6a0403f1d6ce9fe6cf547cf1f

glTF exporter: improve NLA Strip option's name/description

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

M	io_scene_gltf2/__init__.py

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

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 261068bf..666883f4 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -15,7 +15,7 @@
 bl_info = {
     'name': 'glTF 2.0 format',
     'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
-    "version": (1, 2, 69),
+    "version": (1, 2, 70),
     'blender': (2, 83, 9),
     'location': 'File > Import-Export',
     'description': 'Import-Export as glTF 2.0',
@@ -274,13 +274,17 @@ class ExportGLTF2_Base:
     )
 
     export_nla_strips: BoolProperty(
-        name='NLA Strips',
-        description='Export NLA Strip animations',
+        name='Group by NLA Track',
+        description=(
+            "When on, multiple actions become part of the same glTF animation if\n"
+            "they're pushed onto NLA tracks with the same name.\n"
+            "When off, all the currently assigned actions become one glTF animation"
+        ),
         default=True
     )
 
     export_def_bones: BoolProperty(
-        name='Export Deformation bones only',
+        name='Export Deformation Bones Only',
         description='Export Deformation bones only (and needed bones for hierarchy)',
         default=False
     )
@@ -556,10 +560,13 @@ class GLTF_PT_export_include(bpy.types.Panel):
         sfile = context.space_data
         operator = sfile.active_operator
 
-        layout.prop(operator, 'use_selection')
-        layout.prop(operator, 'export_extras')
-        layout.prop(operator, 'export_cameras')
-        layout.prop(operator, 'export_lights')
+        col = layout.column(heading = "Limit to", align = True)
+        col.prop(operator, 'use_selection')
+
+        col = layout.column(heading = "Data", align = True)
+        col.prop(operator, 'export_extras')
+        col.prop(operator, 'export_cameras')
+        col.prop(operator, 'export_lights')
 
 
 class GLTF_PT_export_transform(bpy.types.Panel):
@@ -843,7 +850,7 @@ class ImportGLTF2(Operator, ImportHelper):
         description="Log Level")
 
     import_pack_images: BoolProperty(
-        name='Pack images',
+        name='Pack Images',
         description='Pack all images into .blend file',
         default=True
     )
@@ -876,7 +883,7 @@ class ImportGLTF2(Operator, ImportHelper):
     )
 
     guess_original_bind_pose: BoolProperty(
-        name='Guess original bind pose',
+        name='Guess Original Bind Pose',
         description=(
             'Try to guess the original bind pose for skinned meshes from '
             'the inverse bind matrices.\n'
@@ -888,6 +895,9 @@ class ImportGLTF2(Operator, ImportHelper):
     def draw(self, context):
         layout = self.layout
 
+        layout.use_property_split = True
+        layout.use_property_decorate = False  # No animation.
+
         layout.prop(self, 'import_pack_images')
         layout.prop(self, 'import_shading')
         layout.prop(self, 'guess_original_bind_pose')



More information about the Bf-extensions-cvs mailing list