aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRémi Verschelde2018-01-22 09:02:16 +0100
committerGitHub2018-01-22 09:02:16 +0100
commit3c5d11d6008c13f1eaad4aafdadc514cb3c8fe17 (patch)
tree8536398e2a57d28cfaa0a9991e3958f1f9734389 /editor/plugins
parent37cb029fcc158b8dc43bfefecc6709ae0237642b (diff)
parent70be6848c251e04ef864fa2a75da15371bdc6828 (diff)
downloadgodot-3c5d11d6008c13f1eaad4aafdadc514cb3c8fe17.tar.gz
godot-3c5d11d6008c13f1eaad4aafdadc514cb3c8fe17.tar.zst
godot-3c5d11d6008c13f1eaad4aafdadc514cb3c8fe17.zip
Merge pull request #15963 from Noshyaar/l
Fix ObjectDB Instances still exist
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/tile_set_editor_plugin.cpp6
-rw-r--r--editor/plugins/tile_set_editor_plugin.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/editor/plugins/tile_set_editor_plugin.cpp b/editor/plugins/tile_set_editor_plugin.cpp
index 1dedf9245..dd5127181 100644
--- a/editor/plugins/tile_set_editor_plugin.cpp
+++ b/editor/plugins/tile_set_editor_plugin.cpp
@@ -420,7 +420,7 @@ AutotileEditor::AutotileEditor(EditorNode *p_editor) {
p.push_back((int)SHAPE_DELETE);
tools[SHAPE_DELETE]->connect("pressed", this, "_on_tool_clicked", p);
tool_containers[TOOLBAR_SHAPE]->add_child(tools[SHAPE_DELETE]);
- tool_containers[TOOLBAR_SHAPE]->add_change_receptor(memnew(VSeparator));
+ tool_containers[TOOLBAR_SHAPE]->add_child(memnew(VSeparator));
tools[SHAPE_KEEP_INSIDE_TILE] = memnew(ToolButton);
tools[SHAPE_KEEP_INSIDE_TILE]->set_toggle_mode(true);
tools[SHAPE_KEEP_INSIDE_TILE]->set_pressed(true);
@@ -548,6 +548,10 @@ AutotileEditor::AutotileEditor(EditorNode *p_editor) {
preview->set_region(true);
}
+AutotileEditor::~AutotileEditor() {
+ memdelete(helper);
+}
+
void AutotileEditor::_bind_methods() {
ClassDB::bind_method("_on_autotile_selected", &AutotileEditor::_on_autotile_selected);
diff --git a/editor/plugins/tile_set_editor_plugin.h b/editor/plugins/tile_set_editor_plugin.h
index 93d403dee..30f6e2b92 100644
--- a/editor/plugins/tile_set_editor_plugin.h
+++ b/editor/plugins/tile_set_editor_plugin.h
@@ -120,6 +120,7 @@ class AutotileEditor : public Control {
AutotileEditorHelper *helper;
AutotileEditor(EditorNode *p_editor);
+ ~AutotileEditor();
protected:
static void _bind_methods();