Skip to content

Commit 084b8d1

Browse files
committed
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.
1 parent a7b8602 commit 084b8d1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

servers/rendering/renderer_scene_cull.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,6 @@ inline bool is_geometry_instance(RenderingServer::InstanceType p_type) {
10291029
void RendererSceneCull::instance_set_custom_aabb(RID p_instance, AABB p_aabb) {
10301030
Instance *instance = instance_owner.get_or_null(p_instance);
10311031
ERR_FAIL_NULL(instance);
1032-
ERR_FAIL_COND(!is_geometry_instance(instance->base_type));
10331032

10341033
if (p_aabb != AABB()) {
10351034
// Set custom AABB

0 commit comments

Comments
 (0)