1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Fix auto-translations in editor

This commit is contained in:
kobewi
2023-03-17 01:58:30 +01:00
parent 0291fcd7b6
commit 8f8178bda6
7 changed files with 37 additions and 5 deletions

View File

@@ -2073,6 +2073,11 @@ bool Node::is_property_pinned(const StringName &p_property) const {
StringName Node::get_property_store_alias(const StringName &p_property) const {
return p_property;
}
bool Node::is_part_of_edited_scene() const {
return Engine::get_singleton()->is_editor_hint() && is_inside_tree() && get_tree()->get_edited_scene_root() &&
(get_tree()->get_edited_scene_root() == this || get_tree()->get_edited_scene_root()->is_ancestor_of(this));
}
#endif
void Node::get_storable_properties(HashSet<StringName> &r_storable_properties) const {