mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00: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:
parent
632a544c6e
commit
dd6c213dac
10 changed files with 269 additions and 55 deletions
|
@ -619,6 +619,8 @@ public:
|
|||
FUNC2(canvas_item_set_z_as_relative_to_parent, RID, bool)
|
||||
FUNC3(canvas_item_set_copy_to_backbuffer, RID, bool, const Rect2 &)
|
||||
FUNC2(canvas_item_attach_skeleton, RID, RID)
|
||||
FUNC2(canvas_item_set_skeleton_relative_xform, RID, Transform2D)
|
||||
FUNC1R(Rect2, _debug_canvas_item_get_rect, RID)
|
||||
|
||||
FUNC1(canvas_item_clear, RID)
|
||||
FUNC2(canvas_item_set_draw_index, RID, int)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue