You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[Editor] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@@ -143,7 +143,7 @@ EditorProgress *LightmapGIEditorPlugin::tmp_progress = nullptr;
|
||||
bool LightmapGIEditorPlugin::bake_func_step(float p_progress, const String &p_description, void *, bool p_refresh) {
|
||||
if (!tmp_progress) {
|
||||
tmp_progress = memnew(EditorProgress("bake_lightmaps", TTR("Bake Lightmaps"), 1000, false));
|
||||
ERR_FAIL_COND_V(tmp_progress == nullptr, false);
|
||||
ERR_FAIL_NULL_V(tmp_progress, false);
|
||||
}
|
||||
return tmp_progress->step(p_description, p_progress * 1000, p_refresh);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user