Skip to content

Commit

Permalink
Fix twice applying scale to mesh issue
Browse files Browse the repository at this point in the history
  • Loading branch information
burakaksoy committed Jun 18, 2024
1 parent abefd17 commit abac9cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _append_link_visual(gltf_dict, gltf_buf_io, link_name, visual, visual_i, sha
# if normals_ind is not None:
# mesh_dict["primitives"][0]["attributes"]["NORMAL"] = normals_ind

visual_node["scale"] = list(mesh.getScale().flatten())
visual_node["scale"] = [1.0, 1.0, 1.0]

if not mesh.getResource().getUrl().lower().endswith('.stl'):
mesh_material = mesh.getMaterial()
Expand Down

0 comments on commit abac9cc

Please sign in to comment.