updated rotation loading

This commit is contained in:
SleepKiller 2019-11-12 17:28:18 +13:00
parent 1ac1cc5ce1
commit 11c0be00f5
1 changed files with 1 additions and 2 deletions

View File

@ -27,8 +27,7 @@ def gather_models() -> List[Model]:
model.name = obj.name model.name = obj.name
model.model_type = get_model_type(obj) model.model_type = get_model_type(obj)
model.hidden = get_is_model_hidden(obj) model.hidden = get_is_model_hidden(obj)
model.transform.rotation = obj.rotation_quaternion.copy() model.transform.rotation = obj.rotation_quaternion @ obj.delta_rotation_quaternion
model.transform.rotation.rotate(obj.delta_rotation_quaternion)
model.transform.translation = add_vec(obj.location, obj.delta_location) model.transform.translation = add_vec(obj.location, obj.delta_location)
if obj.parent is not None: if obj.parent is not None: