diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-12-14 11:02:16 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-12-14 11:02:16 +0300 |
commit | f505743b2f9f75f53b1497796869f799aa16020e (patch) | |
tree | fbe03ab40c55f2146f4fe06c15522bf3615c839c /io_scene_gltf2/blender/com | |
parent | 76fc4142b518189b602ff69b4c43ebbfb1b23441 (diff) |
glTF exporter: Basic SK driver export (driven by armature animation)
Diffstat (limited to 'io_scene_gltf2/blender/com')
-rwxr-xr-x | io_scene_gltf2/blender/com/gltf2_blender_conversion.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/com/gltf2_blender_conversion.py b/io_scene_gltf2/blender/com/gltf2_blender_conversion.py index 88026e54..6d9a901a 100755 --- a/io_scene_gltf2/blender/com/gltf2_blender_conversion.py +++ b/io_scene_gltf2/blender/com/gltf2_blender_conversion.py @@ -81,3 +81,15 @@ def texture_transform_gltf_to_blender(texture_transform): 'scale': [scale[0], scale[1]], } +def get_target(property): + return { + "delta_location": "translation", + "delta_rotation_euler": "rotation", + "location": "translation", + "rotation_axis_angle": "rotation", + "rotation_euler": "rotation", + "rotation_quaternion": "rotation", + "scale": "scale", + "value": "weights" + }.get(property) + |