Skip to content

Commit add3f5c

Browse files
committed
Version 11.0.2 - Fixed the incorrect export of the incorrect expor of the normals for polymesh modes and added tests for it. Close #116.
1 parent 71fa259 commit add3f5c

File tree

7 files changed

+8917
-7878
lines changed

7 files changed

+8917
-7878
lines changed

mcblend/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"author": "Artur",
117117
"description": "An addon that allows to design and animate Minecraft Bedrock Edition models",
118118
"blender": (4, 2, 0),
119-
"version": (11, 0, 1), # Remember to update the version in the "docs/conf.py"
119+
"version": (11, 0, 2), # Remember to update the version in the "docs/conf.py"
120120
"location": "",
121121
"warning": "",
122122
"category": "Object"

mcblend/operator_func/importer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,8 +1489,8 @@ def build_with_empties(
14891489
blender_normals.append(
14901490
mathutils.Vector((
14911491
curr_normal[0],
1492-
curr_normal[2],
1493-
curr_normal[1])
1492+
-curr_normal[1],
1493+
curr_normal[2])
14941494
).normalized()
14951495
)
14961496
blender_uvs.append(bone.poly_mesh.uvs[uv_id])

mcblend/operator_func/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def _scale(objprop: McblendObject) -> NumpyTable:
231231
for loop in loops:
232232
# pylint: disable=assignment-from-no-return
233233
transformed_normal = mathutils.Vector(
234-
np.array(loop.normal)[[0, 2, 1]]
234+
(loop.normal[0], -loop.normal[1], loop.normal[2])
235235
).normalized()
236236
normals.append(
237237
cast(

0 commit comments

Comments
 (0)