mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #104510 from fstxz/gridmap-preview-scale
GridMap: fix cell scale not applying to the cursor mesh
This commit is contained in:
commit
45502d1f04
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ void GridMapEditor::_update_cursor_transform() {
|
||||||
_set_selection(false);
|
_set_selection(false);
|
||||||
}
|
}
|
||||||
// Rotation is only applied in paint mode, we don't want the cursor box to rotate otherwise.
|
// Rotation is only applied in paint mode, we don't want the cursor box to rotate otherwise.
|
||||||
cursor_transform.basis = node->get_basis_with_orthogonal_index(cursor_rot);
|
cursor_transform.basis *= node->get_basis_with_orthogonal_index(cursor_rot);
|
||||||
if (selected_palette >= 0 && node && node->get_mesh_library().is_valid()) {
|
if (selected_palette >= 0 && node && node->get_mesh_library().is_valid()) {
|
||||||
cursor_transform *= node->get_mesh_library()->get_item_mesh_transform(selected_palette);
|
cursor_transform *= node->get_mesh_library()->get_item_mesh_transform(selected_palette);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue