Skip to content

Commit

Permalink
Merge pull request godotengine#96067 from SaracenOne/advanced_importe…
Browse files Browse the repository at this point in the history
…r_scale_fix

Fix importer preview for models with scaled armatures.
  • Loading branch information
akien-mga committed Aug 25, 2024
2 parents bb43772 + 06709e6 commit bc2d0e9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions editor/import/3d/scene_import_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,14 +464,8 @@ void SceneImportSettingsDialog::_fill_scene(Node *p_node, TreeItem *p_parent_ite
mesh_node->add_child(collider_view, true);
collider_view->set_owner(mesh_node);

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 = mesh_node->get_aabb();

AABB aabb = accum_xform.xform(mesh_node->get_mesh()->get_aabb());
if (first_aabb) {
contents_aabb = aabb;
first_aabb = false;
Expand Down

0 comments on commit bc2d0e9

Please sign in to comment.