[Bf-extensions-cvs] [1a506485] gltf_vtree: glTF: when exporting with selection, bake in all cases to get constraints applied

Julien Duroure noreply at git.blender.org
Thu Feb 10 05:29:39 CET 2022


Commit: 1a5064852497b500dce4a43dd77b3df617613fbc
Author: Julien Duroure
Date:   Thu Feb 10 05:28:08 2022 +0100
Branches: gltf_vtree
https://developer.blender.org/rBA1a5064852497b500dce4a43dd77b3df617613fbc

glTF: when exporting with selection, bake in all cases to get constraints applied

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

M	io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py

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

diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
index f4a6843b..cc6f5dd0 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
@@ -69,7 +69,7 @@ def gather_animations(  obj_uuid: int,
     # Collect all 'actions' affecting this object. There is a direct mapping between blender actions and glTF animations
     blender_actions = __get_blender_actions(blender_object, export_settings)
 
-    if export_settings['gltf_selected'] is True and export_settings['vtree'].tree_troncated is True \
+    if export_settings['gltf_selected'] is True  \
         and not (blender_object.animation_data is not None and blender_object.animation_data.action is not None): #there is no animation
         channels = __gather_channels_baked(obj_uuid, export_settings)
         if channels is not None:



More information about the Bf-extensions-cvs mailing list