Fix auto-translations in editor
This commit is contained in:
parent
0291fcd7b6
commit
8f8178bda6
7 changed files with 37 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue