mirror of
https://github.com/godotengine/godot
synced 2024-10-06 17:14:19 +00:00
Merge pull request #67710 from KoBeWi/a_bit_local_global_transform
Remove error condition from get_global_transform()
This commit is contained in:
commit
71a6aba3d7
|
@ -416,7 +416,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 has [member top_level] enabled.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_global_transform_with_canvas" qualifiers="const">
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue