Commit 76860fb6 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix erroneous initialization

parent ab76f94d
...@@ -301,11 +301,10 @@ class StlPlater(Plater): ...@@ -301,11 +301,10 @@ class StlPlater(Plater):
def load_stl_into_model(self, path, name, offset = [0, 0, 0], rotation = 0, scale = [1.0, 1.0, 1.0]): def load_stl_into_model(self, path, name, offset = [0, 0, 0], rotation = 0, scale = [1.0, 1.0, 1.0]):
model = stltool.stl(path) model = stltool.stl(path)
model.offsets = offset model.offsets = list(offset)
model.rot = rotation model.rot = rotation
model.scale = scale model.scale = list(scale)
model.filename = name model.filename = name
minx, miny, minz, maxx, maxy, maxz = (10000, 10000, 10000, 0, 0, 0)
minx = float("inf") minx = float("inf")
miny = float("inf") miny = float("inf")
minz = float("inf") minz = float("inf")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment