Skip to content

Commit

Permalink
Merge pull request #4 from Nexusnui/1.0.2-Hotfix
Browse files Browse the repository at this point in the history
1.0.2-Hotfix
  • Loading branch information
Nexusnui authored Nov 18, 2024
2 parents f1e9292 + c000bf2 commit 530483e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brick_data/ldrawObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
class LdrawObject:
def __init__(self, filepath: str, name="", bricklinknumber="", author=""):
self.__load_scene(filepath)
self.scene.apply_scale(2.5)
self.name = name
self.bricklinknumber = bricklinknumber
self.author = author
Expand All @@ -21,6 +20,7 @@ def __load_scene(self, filepath):
scene = trimesh.scene.scene.Scene(scene)
if scene.units not in ["mm", "millimeter", None]:
scene = scene.convert_units("millimeter")
scene = scene.scaled(2.5)
for index, geometry in scene.geometry.items():
if isinstance(geometry.visual, trimesh.visual.texture.TextureVisuals):
geometry.visual = geometry.visual.to_color()
Expand Down

0 comments on commit 530483e

Please sign in to comment.