diff options
author | kobewi <kobewi4e@gmail.com> | 2022-10-21 14:20:57 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-10-21 14:52:43 +0200 |
commit | 2ff676a696a9cc1d77c0a8f4d5f31de8c7b5bc1a (patch) | |
tree | 49006da4178e905c67135389a5f42c00108a7ef5 /scene/main | |
parent | c4c35ab77a4090b0b8f813bce71fdf3053f65a05 (diff) |
Remove error condition from get_global_transform()
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/canvas_item.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scene/main/canvas_item.cpp b/scene/main/canvas_item.cpp index 1dc28d91c5..6ef02884a3 100644 --- a/scene/main/canvas_item.cpp +++ b/scene/main/canvas_item.cpp @@ -168,9 +168,6 @@ Transform2D CanvasItem::get_screen_transform() const { } Transform2D CanvasItem::get_global_transform() const { -#ifdef DEBUG_ENABLED - ERR_FAIL_COND_V(!is_inside_tree(), get_transform()); -#endif if (global_invalid) { const CanvasItem *pi = get_parent_item(); if (pi) { |