[Bf-extensions-cvs] [ce1a389e] master: GLTF UI: Small tweaks for new layout features

William Reynish noreply at git.blender.org
Sat Apr 18 14:14:46 CEST 2020


Commit: ce1a389eaebacc21bec8d82dca5f7d9f1cadc86c
Author: William Reynish
Date:   Sat Apr 18 14:14:45 2020 +0200
Branches: master
https://developer.blender.org/rBAce1a389eaebacc21bec8d82dca5f7d9f1cadc86c

GLTF UI: Small tweaks for new layout features

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

M	io_scene_gltf2/__init__.py

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

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 1a3bb3dd..58f020da 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -280,7 +280,7 @@ class ExportGLTF2_Base:
     )
 
     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 +556,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 +846,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 +879,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 +891,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