From 11c0be00f526be2c849b5fae1fafca51ef8103bb Mon Sep 17 00:00:00 2001 From: SleepKiller Date: Tue, 12 Nov 2019 17:28:18 +1300 Subject: [PATCH] updated rotation loading --- addons/io_scene_swbf_msh/msh_model_gather.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/io_scene_swbf_msh/msh_model_gather.py b/addons/io_scene_swbf_msh/msh_model_gather.py index 5e4cd5d..e1aa472 100644 --- a/addons/io_scene_swbf_msh/msh_model_gather.py +++ b/addons/io_scene_swbf_msh/msh_model_gather.py @@ -27,8 +27,7 @@ def gather_models() -> List[Model]: model.name = obj.name model.model_type = get_model_type(obj) model.hidden = get_is_model_hidden(obj) - model.transform.rotation = obj.rotation_quaternion.copy() - model.transform.rotation.rotate(obj.delta_rotation_quaternion) + model.transform.rotation = obj.rotation_quaternion @ obj.delta_rotation_quaternion model.transform.translation = add_vec(obj.location, obj.delta_location) if obj.parent is not None: