mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 05:19:50 +01:00
Remove error condition from get_global_transform()
(cherry picked from commit 2ff676a696a9cc1d77c0a8f4d5f31de8c7b5bc1a)
This commit is contained in:
parent
17989ca8ef
commit
43cb6e940a
@ -301,7 +301,7 @@
|
||||
<method name="get_global_transform" qualifiers="const">
|
||||
<return type="Transform2D" />
|
||||
<description>
|
||||
Returns the global transform matrix of this item.
|
||||
Returns the global transform matrix of this item, i.e. the combined transform up to the topmost [CanvasItem] node. The topmost item is a [CanvasItem] that either has no parent, has non-[CanvasItem] parent or it is top-level. See also [method set_as_toplevel].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_global_transform_with_canvas" qualifiers="const">
|
||||
|
@ -482,9 +482,6 @@ Transform2D CanvasItem::get_global_transform_with_canvas() 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user