diff options
Diffstat (limited to 'editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp b/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp index e86ce440ee..c7d7cc7918 100644 --- a/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp +++ b/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp @@ -127,12 +127,12 @@ void GPUParticlesCollisionSDF3DEditorPlugin::bake_func_begin(int p_steps) { } void GPUParticlesCollisionSDF3DEditorPlugin::bake_func_step(int p_step, const String &p_description) { - ERR_FAIL_COND(tmp_progress == nullptr); + ERR_FAIL_NULL(tmp_progress); tmp_progress->step(p_description, p_step, false); } void GPUParticlesCollisionSDF3DEditorPlugin::bake_func_end() { - ERR_FAIL_COND(tmp_progress == nullptr); + ERR_FAIL_NULL(tmp_progress); memdelete(tmp_progress); tmp_progress = nullptr; } |