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:
@ -1054,7 +1054,7 @@ void GraphEdit::set_zoom(float p_zoom) {
|
||||
_update_scroll();
|
||||
connections_layer->update();
|
||||
|
||||
if (is_visible()) {
|
||||
if (is_visible_in_tree()) {
|
||||
|
||||
Vector2 ofs = sbofs*zoom - get_size()/2;
|
||||
h_scroll->set_value( ofs.x );
|
||||
|
||||
Reference in New Issue
Block a user