Skip to content

Commit

Permalink
Revert "Fix importer preview for models with scaled armatures"
Browse files Browse the repository at this point in the history
This reverts commit 06709e6.
  • Loading branch information
SaracenOne authored and akien-mga committed Aug 26, 2024
1 parent e63c40e commit 2453911
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion editor/import/3d/scene_import_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,14 @@ void SceneImportSettingsDialog::_fill_scene(Node *p_node, TreeItem *p_parent_ite
mesh_node->add_child(collider_view, true);
collider_view->set_owner(mesh_node);

AABB aabb = mesh_node->get_aabb();
Transform3D accum_xform;
Node3D *base = mesh_node;
while (base) {
accum_xform = base->get_transform() * accum_xform;
base = Object::cast_to<Node3D>(base->get_parent());
}

AABB aabb = accum_xform.xform(mesh_node->get_mesh()->get_aabb());

if (first_aabb) {
contents_aabb = aabb;
Expand Down

0 comments on commit 2453911

Please sign in to comment.