You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #84451 from ShirenY/FixSkeletonMeshCulling
Transform mesh's AABB to skeleton's space when calculating mesh's bounds
This commit is contained in:
@@ -1802,6 +1802,14 @@ Array RenderingServer::_mesh_surface_get_skeleton_aabb_bind(RID p_mesh, int p_su
|
||||
}
|
||||
#endif
|
||||
|
||||
Rect2 RenderingServer::debug_canvas_item_get_rect(RID p_item) {
|
||||
#ifdef TOOLS_ENABLED
|
||||
return _debug_canvas_item_get_rect(p_item);
|
||||
#else
|
||||
return Rect2();
|
||||
#endif
|
||||
}
|
||||
|
||||
int RenderingServer::global_shader_uniform_type_get_shader_datatype(GlobalShaderParameterType p_type) {
|
||||
switch (p_type) {
|
||||
case RS::GLOBAL_VAR_TYPE_BOOL:
|
||||
@@ -3188,6 +3196,8 @@ void RenderingServer::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("canvas_item_set_visibility_notifier", "item", "enable", "area", "enter_callable", "exit_callable"), &RenderingServer::canvas_item_set_visibility_notifier);
|
||||
ClassDB::bind_method(D_METHOD("canvas_item_set_canvas_group_mode", "item", "mode", "clear_margin", "fit_empty", "fit_margin", "blur_mipmaps"), &RenderingServer::canvas_item_set_canvas_group_mode, DEFVAL(5.0), DEFVAL(false), DEFVAL(0.0), DEFVAL(false));
|
||||
|
||||
ClassDB::bind_method(D_METHOD("debug_canvas_item_get_rect", "item"), &RenderingServer::debug_canvas_item_get_rect);
|
||||
|
||||
BIND_ENUM_CONSTANT(NINE_PATCH_STRETCH);
|
||||
BIND_ENUM_CONSTANT(NINE_PATCH_TILE);
|
||||
BIND_ENUM_CONSTANT(NINE_PATCH_TILE_FIT);
|
||||
|
||||
Reference in New Issue
Block a user