From f5ec062ce0c71d3b0971416fb39f33041283f81b Mon Sep 17 00:00:00 2001 From: SleepKiller Date: Wed, 20 Nov 2019 19:32:35 +1300 Subject: [PATCH] fix model segment export scaling --- addons/io_scene_swbf_msh/msh_model_utilities.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/io_scene_swbf_msh/msh_model_utilities.py b/addons/io_scene_swbf_msh/msh_model_utilities.py index 1236b5e..1547697 100644 --- a/addons/io_scene_swbf_msh/msh_model_utilities.py +++ b/addons/io_scene_swbf_msh/msh_model_utilities.py @@ -9,8 +9,7 @@ def scale_segments(scale: Vector, segments: List[GeometrySegment]): """ Scales are positions in the GeometrySegment list. """ for segment in segments: - for pos in segment.positions: - pos = mul_vec(pos, scale) + segment.positions = [mul_vec(pos, scale) for pos in segment.positions] def get_model_world_matrix(model: Model, models: List[Model]) -> Matrix: """ Gets a Blender Matrix for transforming the model into world space. """