mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix Polygon2D skinned bounds (for culling)
The bound Rect2 was previously incorrect because bone transforms need to be applied to verts in bone space, rather than local space. This was previously resulting in skinned Polygon2Ds being incorrectly culled.
This commit is contained in:
@@ -728,6 +728,14 @@
|
||||
Modulates all colors in the given canvas.
|
||||
</description>
|
||||
</method>
|
||||
<method name="debug_canvas_item_get_rect">
|
||||
<return type="Rect2" />
|
||||
<argument index="0" name="item" type="RID" />
|
||||
<description>
|
||||
Returns the bounding rectangle for a canvas item in local space, as calculated by the renderer. This bound is used internally for culling.
|
||||
[b]Warning:[/b] This function is intended for debugging in the editor, and will pass through and return a zero [Rect2] in exported projects.
|
||||
</description>
|
||||
</method>
|
||||
<method name="directional_light_create">
|
||||
<return type="RID" />
|
||||
<description>
|
||||
|
||||
Reference in New Issue
Block a user