mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Unify usage of GLOBAL/EDITOR_GET
This commit is contained in:
parent
28a4eec9a7
commit
e48c5daddf
113 changed files with 528 additions and 528 deletions
|
|
@ -633,7 +633,7 @@ Rect2 Control::get_parent_anchorable_rect() const {
|
|||
#ifdef TOOLS_ENABLED
|
||||
Node *edited_root = get_tree()->get_edited_scene_root();
|
||||
if (edited_root && (this == edited_root || edited_root->is_ancestor_of(this))) {
|
||||
parent_rect.size = Size2(ProjectSettings::get_singleton()->get("display/window/size/viewport_width"), ProjectSettings::get_singleton()->get("display/window/size/viewport_height"));
|
||||
parent_rect.size = Size2(GLOBAL_GET("display/window/size/viewport_width"), GLOBAL_GET("display/window/size/viewport_height"));
|
||||
} else {
|
||||
parent_rect = get_viewport()->get_visible_rect();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue