diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2024-04-09 18:59:46 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2024-04-09 19:02:43 +0200 |
commit | 084b8d1246359187e95f2f3a049ac70f363bfb20 (patch) | |
tree | d68f116deccdb7d77e09eb80db5f9deebbcd63b4 /servers/rendering/renderer_scene_cull.cpp | |
parent | a7b860250f305f6cbaf61c30f232ff3bbdfdda0b (diff) | |
download | redot-engine-084b8d1246359187e95f2f3a049ac70f363bfb20.tar.gz |
Fix GeometryInstance3D Custom AABB assignment in the editor not working
This also fixes error spam when changing Custom AABB on a MeshInstance3D
that has no Mesh resource assigned yet (which is allowed in the editor).
This avoids pitfalls when assigning a custom AABB in a script when
loading meshes at runtime.
Diffstat (limited to 'servers/rendering/renderer_scene_cull.cpp')
-rw-r--r-- | servers/rendering/renderer_scene_cull.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/servers/rendering/renderer_scene_cull.cpp b/servers/rendering/renderer_scene_cull.cpp index b33de9d6f4..c5ccded4ab 100644 --- a/servers/rendering/renderer_scene_cull.cpp +++ b/servers/rendering/renderer_scene_cull.cpp @@ -1029,7 +1029,6 @@ inline bool is_geometry_instance(RenderingServer::InstanceType p_type) { void RendererSceneCull::instance_set_custom_aabb(RID p_instance, AABB p_aabb) { Instance *instance = instance_owner.get_or_null(p_instance); ERR_FAIL_NULL(instance); - ERR_FAIL_COND(!is_geometry_instance(instance->base_type)); if (p_aabb != AABB()) { // Set custom AABB |