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:
@@ -67,7 +67,7 @@ bool Path2DEditor::forward_gui_input(const InputEvent& p_event) {
|
||||
if (!node)
|
||||
return false;
|
||||
|
||||
if (!node->is_visible())
|
||||
if (!node->is_visible_in_tree())
|
||||
return false;
|
||||
|
||||
if (!node->get_curve().is_valid())
|
||||
@@ -475,7 +475,7 @@ void Path2DEditor::_canvas_draw() {
|
||||
if (!node)
|
||||
return ;
|
||||
|
||||
if (!node->is_visible())
|
||||
if (!node->is_visible_in_tree())
|
||||
return;
|
||||
|
||||
if (!node->get_curve().is_valid())
|
||||
|
||||
Reference in New Issue
Block a user