You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'
Condensed some if and ERR statements. Added dots to end of error messages Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?), core/os/memory.cpp, drivers/png/png_driver_common.cpp, drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
This commit is contained in:
committed by
Rémi Verschelde
parent
40640a01dc
commit
71d71d55b5
@@ -147,9 +147,8 @@ void MultiMeshEditor::_populate() {
|
||||
w.release();
|
||||
|
||||
PoolVector<Face3> faces = geometry;
|
||||
ERR_EXPLAIN(TTR("Parent has no solid faces to populate."));
|
||||
int facecount = faces.size();
|
||||
ERR_FAIL_COND(!facecount);
|
||||
ERR_FAIL_COND_MSG(!facecount, "Parent has no solid faces to populate.");
|
||||
|
||||
PoolVector<Face3>::Read r = faces.read();
|
||||
|
||||
@@ -164,10 +163,8 @@ void MultiMeshEditor::_populate() {
|
||||
area_accum += area;
|
||||
}
|
||||
|
||||
ERR_EXPLAIN(TTR("Couldn't map area."));
|
||||
ERR_FAIL_COND(triangle_area_map.size() == 0);
|
||||
ERR_EXPLAIN(TTR("Couldn't map area."));
|
||||
ERR_FAIL_COND(area_accum == 0);
|
||||
ERR_FAIL_COND_MSG(triangle_area_map.size() == 0, "Couldn't map area.");
|
||||
ERR_FAIL_COND_MSG(area_accum == 0, "Couldn't map area.");
|
||||
|
||||
Ref<MultiMesh> multimesh = memnew(MultiMesh);
|
||||
multimesh->set_mesh(mesh);
|
||||
|
||||
Reference in New Issue
Block a user