diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2022-09-24 18:19:55 -0500 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2022-10-21 17:54:49 -0500 |
commit | 7f9a8c99c93693023a96eb08afd3d9a723663279 (patch) | |
tree | 4842b94709e5ca15a4d73ca0b3da3b1ac753041a /editor/import | |
parent | e73ff0e961da2b57f4ff63185c0929cc222c7372 (diff) |
Clean up Basis from Euler code
Diffstat (limited to 'editor/import')
-rw-r--r-- | editor/import/resource_importer_scene.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/resource_importer_scene.h b/editor/import/resource_importer_scene.h index 498e9f2964..5f64330453 100644 --- a/editor/import/resource_importer_scene.h +++ b/editor/import/resource_importer_scene.h @@ -474,7 +474,7 @@ Transform3D ResourceImporterScene::get_collision_shapes_transform(const M &p_opt } if (p_options.has(SNAME("primitive/rotation"))) { - transform.basis.set_euler((p_options[SNAME("primitive/rotation")].operator Vector3() / 180.0) * Math_PI); + transform.basis = Basis::from_euler(p_options[SNAME("primitive/rotation")].operator Vector3() * (Math_PI / 180.0)); } } return transform; |