summaryrefslogtreecommitdiff
path: root/editor/import
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2022-09-24 18:19:55 -0500
committerAaron Franke <arnfranke@yahoo.com>2022-10-21 17:54:49 -0500
commit7f9a8c99c93693023a96eb08afd3d9a723663279 (patch)
tree4842b94709e5ca15a4d73ca0b3da3b1ac753041a /editor/import
parente73ff0e961da2b57f4ff63185c0929cc222c7372 (diff)
Clean up Basis from Euler code
Diffstat (limited to 'editor/import')
-rw-r--r--editor/import/resource_importer_scene.h2
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;