summaryrefslogtreecommitdiffstats
path: root/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-09-09 17:24:40 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-09-15 20:15:39 +0200
commit75ee58fd0476360c67375cf403f06644a0aa117e (patch)
treedbfda27d4bcd56ed9dc6362c2e51521059e98788 /editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp
parent5f1e56ff26be4070496aa51095b9ac2f2b4f4ed8 (diff)
downloadredot-engine-75ee58fd0476360c67375cf403f06644a0aa117e.tar.gz
[Editor] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp')
-rw-r--r--editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp4
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;
}