diff --git a/client/ayon_unreal/plugins/load/load_animation.py b/client/ayon_unreal/plugins/load/load_animation.py index 4ae7d244..7e5f3a2d 100644 --- a/client/ayon_unreal/plugins/load/load_animation.py +++ b/client/ayon_unreal/plugins/load/load_animation.py @@ -124,8 +124,13 @@ def _import_animation( 'convert_scene', True) task.options.anim_sequence_import_data.set_editor_property( 'force_front_x_axis', False) - task.options.anim_sequence_import_data.set_editor_property( - 'import_rotation', unreal.Rotator(roll=90.0, pitch=0.0, yaw=0.0)) + if unreal_pipeline.UNREAL_VERSION.major == 5 and ( + unreal_pipeline.UNREAL_VERSION.minor <=4 + ): + task.options.anim_sequence_import_data.set_editor_property( + 'import_rotation', + unreal.Rotator(roll=90.0, pitch=0.0, yaw=0.0) + ) unreal.AssetToolsHelpers.get_asset_tools().import_asset_tasks([task])