1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Transform mesh's AABB to skeleton's space when calculate mesh's bounds.

(cherry picked from commit 27f71c4e78)
This commit is contained in:
ShirenY
2023-11-04 22:09:33 +08:00
committed by Yuri Sizov
parent e2c96dc711
commit 211dd2fb53
11 changed files with 122 additions and 25 deletions

View File

@@ -2030,6 +2030,12 @@ void RendererCanvasCull::update_visibility_notifiers() {
}
}
Rect2 RendererCanvasCull::_debug_canvas_item_get_rect(RID p_item) {
Item *canvas_item = canvas_item_owner.get_or_null(p_item);
ERR_FAIL_NULL_V(canvas_item, Rect2());
return canvas_item->get_rect();
}
bool RendererCanvasCull::free(RID p_rid) {
if (canvas_owner.owns(p_rid)) {
Canvas *canvas = canvas_owner.get_or_null(p_rid);