feat: new primitives get selected immediately

This commit is contained in:
Sara Gerretsen 2026-01-07 20:20:41 +01:00
parent 33da5f1772
commit d736506eb4
6 changed files with 37 additions and 30 deletions

View file

@ -48,6 +48,7 @@ void TerrainMeshEditor::_bind_methods() {
void TerrainMeshEditor::ready() {
connect(sig_primitive_list_changed, callable_mp(this, &self_type::on_primitive_list_changed));
connect(sig_primitive_added, callable_mp(this, &self_type::set_current_selected));
load_new();
if (FileDialog * dialog{ memnew(FileDialog) }) {
this->file_dialog = dialog;