fix model segment export scaling
This commit is contained in:
parent
f3cbc90651
commit
f5ec062ce0
|
@ -9,8 +9,7 @@ def scale_segments(scale: Vector, segments: List[GeometrySegment]):
|
||||||
""" Scales are positions in the GeometrySegment list. """
|
""" Scales are positions in the GeometrySegment list. """
|
||||||
|
|
||||||
for segment in segments:
|
for segment in segments:
|
||||||
for pos in segment.positions:
|
segment.positions = [mul_vec(pos, scale) for pos in segment.positions]
|
||||||
pos = mul_vec(pos, scale)
|
|
||||||
|
|
||||||
def get_model_world_matrix(model: Model, models: List[Model]) -> Matrix:
|
def get_model_world_matrix(model: Model, models: List[Model]) -> Matrix:
|
||||||
""" Gets a Blender Matrix for transforming the model into world space. """
|
""" Gets a Blender Matrix for transforming the model into world space. """
|
||||||
|
|
Loading…
Reference in New Issue