Fix: Tilemap tools not overriding main editor tools

This commit is contained in:
DexterFstone
2025-06-22 05:40:18 -07:00
parent 9cd297b6f2
commit 9aa0465a7a

View File

@ -114,6 +114,7 @@ void TileMapLayerEditorTilesPlugin::_update_toolbar() {
random_tile_toggle->show();
scatter_controls_container->set_visible(random_tile_toggle->is_pressed());
}
CanvasItemEditor::get_singleton()->set_current_tool(CanvasItemEditor::TOOL_SELECT);
}
void TileMapLayerEditorTilesPlugin::_update_transform_buttons() {
@ -3664,6 +3665,9 @@ void TileMapLayerEditor::_notification(int p_what) {
if (custom_overlay) {
custom_overlay->set_visible(is_visible_in_tree());
}
if (is_visible()) {
CanvasItemEditor::get_singleton()->set_current_tool(CanvasItemEditor::TOOL_SELECT);
}
} break;
case NOTIFICATION_THEME_CHANGED: {