diff options
| author | Ruslan Mustakov | 2018-01-13 16:48:07 +0700 |
|---|---|---|
| committer | Ruslan Mustakov | 2018-01-13 16:48:07 +0700 |
| commit | 0b632be4a931f1322e0ab36754c454fd3677bfa6 (patch) | |
| tree | 1247f4bccc04c86e3a491dc6278995c8e1c6b104 /scene/gui/control.cpp | |
| parent | 7de3a114699fa31c8ab0ae8a5c95ef8e1113a090 (diff) | |
| download | godot-0b632be4a931f1322e0ab36754c454fd3677bfa6.tar.gz godot-0b632be4a931f1322e0ab36754c454fd3677bfa6.tar.zst godot-0b632be4a931f1322e0ab36754c454fd3677bfa6.zip | |
Diffstat (limited to 'scene/gui/control.cpp')
| -rw-r--r-- | scene/gui/control.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 6d7da7cdd..d9d033dfb 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -1325,7 +1325,7 @@ float Control::_get_parent_range(int p_idx) const { if (!is_inside_tree()) { - return 1.0; + return 0; } if (data.parent_canvas_item) { @@ -1334,7 +1334,7 @@ float Control::_get_parent_range(int p_idx) const { return get_viewport()->get_visible_rect().size[p_idx & 1]; } - return 1.0; + return 0; } float Control::_get_range(int p_idx) const { |
