Include the following-viewport-transform into CanvasLayer transforms
The following-viewport-transform was missing from several calculations
This commit is contained in:
@@ -404,7 +404,7 @@
|
||||
<method name="get_canvas_transform" qualifiers="const">
|
||||
<return type="Transform2D" />
|
||||
<description>
|
||||
Returns the transform matrix of this item's canvas.
|
||||
Returns the transform from the coordinate system of the canvas, this item is in, to the [Viewport]s coordinate system.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_global_mouse_position" qualifiers="const">
|
||||
@@ -422,7 +422,7 @@
|
||||
<method name="get_global_transform_with_canvas" qualifiers="const">
|
||||
<return type="Transform2D" />
|
||||
<description>
|
||||
Returns the global transform matrix of this item in relation to the canvas.
|
||||
Returns the transform from the local coordinate system of this [CanvasItem] to the [Viewport]s coordinate system.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_local_mouse_position" qualifiers="const">
|
||||
@@ -453,7 +453,7 @@
|
||||
<method name="get_viewport_transform" qualifiers="const">
|
||||
<return type="Transform2D" />
|
||||
<description>
|
||||
Returns this item's transform in relation to the viewport.
|
||||
Returns the transform from the coordinate system of the canvas, this item is in, to the [Viewport]s embedders coordinate system.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_world_2d" qualifiers="const">
|
||||
|
||||
@@ -18,6 +18,12 @@
|
||||
Returns the RID of the canvas used by this layer.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_final_transform" qualifiers="const">
|
||||
<return type="Transform2D" />
|
||||
<description>
|
||||
Returns the transform from the [CanvasLayer]s coordinate system to the [Viewport]s coordinate system.
|
||||
</description>
|
||||
</method>
|
||||
<method name="hide">
|
||||
<return type="void" />
|
||||
<description>
|
||||
|
||||
Reference in New Issue
Block a user