1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

Merge pull request #111025 from xuhuisheng/dev/clear_inheritance

Fix Clear Inheritance issues
This commit is contained in:
Thaddeus Crews
2025-10-29 13:13:53 -05:00
5 changed files with 51 additions and 30 deletions

View File

@@ -1743,13 +1743,17 @@ void SceneTreeEditor::set_display_foreign_nodes(bool p_display) {
_update_tree();
}
void SceneTreeEditor::set_valid_types(const Vector<StringName> &p_valid) {
valid_types = p_valid;
void SceneTreeEditor::clear_cache() {
node_cache.force_update = true;
callable_mp(this, &SceneTreeEditor::_update_tree).call_deferred(false);
tree_dirty = true;
}
void SceneTreeEditor::set_valid_types(const Vector<StringName> &p_valid) {
valid_types = p_valid;
clear_cache();
}
void SceneTreeEditor::set_editor_selection(EditorSelection *p_selection) {
editor_selection = p_selection;
tree->set_select_mode(Tree::SELECT_MULTI);