You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +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:
@@ -2802,13 +2802,13 @@ void PropertyEditor::_notification(int p_what) {
|
||||
|
||||
if (p_what==NOTIFICATION_DRAG_BEGIN) {
|
||||
|
||||
if (is_visible() && tree->get_root()) {
|
||||
if (is_visible_in_tree() && tree->get_root()) {
|
||||
_mark_drop_fields(tree->get_root());
|
||||
}
|
||||
}
|
||||
|
||||
if (p_what==NOTIFICATION_DRAG_END) {
|
||||
if (is_visible() && tree->get_root()) {
|
||||
if (is_visible_in_tree() && tree->get_root()) {
|
||||
_clear_drop_fields(tree->get_root());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user