Skip to content

Commit 45502d1

Browse files
committed
Merge pull request #104510 from fstxz/gridmap-preview-scale
GridMap: fix cell scale not applying to the cursor mesh
2 parents 318e6c7 + d1f11b2 commit 45502d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gridmap/editor/grid_map_editor_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ void GridMapEditor::_update_cursor_transform() {
204204
_set_selection(false);
205205
}
206206
// Rotation is only applied in paint mode, we don't want the cursor box to rotate otherwise.
207-
cursor_transform.basis = node->get_basis_with_orthogonal_index(cursor_rot);
207+
cursor_transform.basis *= node->get_basis_with_orthogonal_index(cursor_rot);
208208
if (selected_palette >= 0 && node && node->get_mesh_library().is_valid()) {
209209
cursor_transform *= node->get_mesh_library()->get_item_mesh_transform(selected_palette);
210210
}

0 commit comments

Comments
 (0)