mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
some checks for node removed, may fix #20863
This commit is contained in:
parent
f123694b4e
commit
0161e95f01
3 changed files with 12 additions and 0 deletions
|
|
@ -262,6 +262,7 @@ void ParticlesEditor::_notification(int p_notification) {
|
|||
|
||||
if (p_notification == NOTIFICATION_ENTER_TREE) {
|
||||
options->set_icon(options->get_popup()->get_icon("Particles", "EditorIcons"));
|
||||
get_tree()->connect("node_removed", this, "_node_removed");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -444,6 +445,7 @@ void ParticlesEditor::_bind_methods() {
|
|||
|
||||
ClassDB::bind_method("_menu_option", &ParticlesEditor::_menu_option);
|
||||
ClassDB::bind_method("_generate_aabb", &ParticlesEditor::_generate_aabb);
|
||||
ClassDB::bind_method("_node_removed", &ParticlesEditor::_node_removed);
|
||||
}
|
||||
|
||||
ParticlesEditor::ParticlesEditor() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue