Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2019-06-11 10:20:39 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-06-11 10:20:39 +0300
commitfcf7d4c16b17c34579fc080386425e0774a502d2 (patch)
treeb3a74d11bbbe88a7e53b5ce027a420c634c15afd /io_scene_gltf2/blender/exp/gltf2_blender_get.py
parent7317987baa8aac52a11d6af0a825d87acc658f60 (diff)
glTF exporter: fix 2.80 matrix issue
Was a bug in our double compatibility convertor 2.79 / 2.80
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_get.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_get.py4
1 files changed, 3 insertions, 1 deletions
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],