You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Fix editor lock on sdf collision bake on error
(cherry picked from commit a2be742f97)
This commit is contained in:
committed by
Yuri Sizov
parent
46e7f334fb
commit
a27dd86755
@@ -469,8 +469,13 @@ Ref<Image> GPUParticlesCollisionSDF3D::bake() {
|
||||
}
|
||||
|
||||
//compute bvh
|
||||
|
||||
ERR_FAIL_COND_V_MSG(faces.size() <= 1, Ref<Image>(), "No faces detected during GPUParticlesCollisionSDF3D bake. Check whether there are visible meshes matching the bake mask within its extents.");
|
||||
if (faces.size() <= 1) {
|
||||
ERR_PRINT("No faces detected during GPUParticlesCollisionSDF3D bake. Check whether there are visible meshes matching the bake mask within its extents.");
|
||||
if (bake_end_function) {
|
||||
bake_end_function();
|
||||
}
|
||||
return Ref<Image>();
|
||||
}
|
||||
|
||||
LocalVector<FacePos> face_pos;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user