diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-06-11 10:20:39 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-06-11 10:20:39 +0300 |
commit | fcf7d4c16b17c34579fc080386425e0774a502d2 (patch) | |
tree | b3a74d11bbbe88a7e53b5ce027a420c634c15afd | |
parent | 7317987baa8aac52a11d6af0a825d87acc658f60 (diff) |
glTF exporter: fix 2.80 matrix issue
Was a bug in our double compatibility convertor 2.79 / 2.80
-rwxr-xr-x | io_scene_gltf2/__init__.py | 2 | ||||
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_get.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index ce044ab1..24bb39d9 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": (0, 9, 24), + "version": (0, 9, 25), 'blender': (2, 80, 0), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_get.py b/io_scene_gltf2/blender/exp/gltf2_blender_get.py index cee28c5b..4916d5af 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_get.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_get.py @@ -66,8 +66,10 @@ def get_socket_or_texture_slot(blender_material: bpy.types.Material, name: str): inputs = sum([[input for input in node.inputs if input.name == name] for node in nodes], []) if inputs: return inputs[0] + else: + pass return None @@ -158,7 +160,7 @@ def get_texture_transform_from_texture_node(texture_node): if abs(scale[0]) < 1e-5 or abs(scale[1]) < 1e-5: return None - new_offset = Matrix.Rotation(-rotation, 3, 'Z') * Vector((-offset[0], -offset[1], 1)) + new_offset = Matrix.Rotation(-rotation, 3, 'Z') @ Vector((-offset[0], -offset[1], 1)) new_offset[0] /= scale[0]; new_offset[1] /= scale[1] return { "offset": new_offset[0:2], |