You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
New API for visibility in both CanvasItem and Spatial
visible (property) - access set_visible(bool) is_visible() is_visible_in_tree() - true when visible and parents visible show() hide() - for convenience
This commit is contained in:
@@ -176,7 +176,7 @@ void ProjectExportDialog::_scan_finished() {
|
||||
print_line("**********SCAN DONEEE********");
|
||||
print_line("**********SCAN DONEEE********");*/
|
||||
|
||||
if (!is_visible()) {
|
||||
if (!is_visible_in_tree()) {
|
||||
pending_update_tree=true;
|
||||
return;
|
||||
}
|
||||
@@ -368,7 +368,7 @@ void ProjectExportDialog::_notification(int p_what) {
|
||||
|
||||
} break;
|
||||
case NOTIFICATION_VISIBILITY_CHANGED: {
|
||||
if (is_visible())
|
||||
if (is_visible_in_tree())
|
||||
_validate_platform();
|
||||
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user