[Bf-extensions-cvs] [b9097af3] master: glTF exporter: remove not used option

Julien Duroure noreply at git.blender.org
Sun May 26 23:57:33 CEST 2019


Commit: b9097af39c2a463110fbe4d025ce03851903fdf7
Author: Julien Duroure
Date:   Sun May 26 23:51:46 2019 +0200
Branches: master
https://developer.blender.org/rBAb9097af39c2a463110fbe4d025ce03851903fdf7

glTF exporter: remove not used option

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

M	io_scene_gltf2/__init__.py
M	io_scene_gltf2/blender/exp/gltf2_blender_export_keys.py
M	io_scene_gltf2/blender/exp/gltf2_blender_gather_joints.py

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

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 2f82e0d6..df0a320f 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -267,12 +267,6 @@ class ExportGLTF2_Base:
         default=True
     )
 
-    export_bake_skins: BoolProperty(
-        name='Bake Skinning Constraints',
-        description='Apply skinning constraints to armatures',
-        default=False
-    )
-
     export_all_influences: BoolProperty(
         name='Include All Bone Influences',
         description='Allow >4 joint vertex influences. Models may appear incorrectly in many viewers',
@@ -400,10 +394,8 @@ class ExportGLTF2_Base:
             export_settings['gltf_force_sampling'] = False
         export_settings['gltf_skins'] = self.export_skins
         if self.export_skins:
-            export_settings['gltf_bake_skins'] = self.export_bake_skins
             export_settings['gltf_all_vertex_influences'] = self.export_all_influences
         else:
-            export_settings['gltf_bake_skins'] = False
             export_settings['gltf_all_vertex_influences'] = False
         export_settings['gltf_frame_step'] = self.export_frame_step
         export_settings['gltf_morph'] = self.export_morph
@@ -485,7 +477,6 @@ class ExportGLTF2_Base:
             col.prop(self, 'export_force_sampling')
         col.prop(self, 'export_skins')
         if self.export_skins:
-            col.prop(self, 'export_bake_skins')
             col.prop(self, 'export_all_influences')
         col.prop(self, 'export_morph')
         if self.export_morph:
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_export_keys.py b/io_scene_gltf2/blender/exp/gltf2_blender_export_keys.py
index 2e2f9486..59443934 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_export_keys.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_export_keys.py
@@ -39,7 +39,6 @@ FILE_DIRECTORY = 'gltf_filedirectory'
 BINARY_FILENAME = 'gltf_binaryfilename'
 YUP = 'gltf_yup'
 MORPH = 'gltf_morph'
-BAKE_SKINS = 'gltf_bake_skins'
 TEX_COORDS = 'gltf_texcoords'
 COLORS = 'gltf_colors'
 NORMALS = 'gltf_normals'
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_joints.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_joints.py
index 86a4487b..2059ea88 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_joints.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_joints.py
@@ -43,10 +43,6 @@ def gather_joint(blender_bone, export_settings):
         correction_matrix_local = gltf2_blender_math.multiply(
             blender_bone.parent.bone.matrix_local.inverted(), blender_bone.bone.matrix_local)
     matrix_basis = blender_bone.matrix_basis
-    if export_settings[gltf2_blender_export_keys.BAKE_SKINS]:
-        gltf2_io_debug.print_console("WARNING", "glTF bake skins not supported")
-        # matrix_basis = blender_object.convert_space(blender_bone, blender_bone.matrix, from_space='POSE',
-        #                                             to_space='LOCAL')
     trans, rot, sca = gltf2_blender_extract.decompose_transition(
         gltf2_blender_math.multiply(correction_matrix_local, matrix_basis), export_settings)
     translation, rotation, scale = (None, None, None)



More information about the Bf-extensions-cvs mailing list