diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-08-17 13:31:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-17 13:31:08 +0200 |
commit | de4aabe89b7b68677f145f21c956183bbc92f686 (patch) | |
tree | 20b2e819d599d6d1bd459bb51880c31e97cfe825 /drivers/gles3/rasterizer_storage_gles3.cpp | |
parent | 40640a01dc90be00e55e4eef3c7800401ef63b18 (diff) | |
parent | 71d71d55b5c0d6da4d1555823ac432bf0b33389a (diff) |
Merge pull request #31244 from Unholydeath/BB_ChangeErrorMacros
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'
Diffstat (limited to 'drivers/gles3/rasterizer_storage_gles3.cpp')
-rw-r--r-- | drivers/gles3/rasterizer_storage_gles3.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index c7040c232b..a54064e4c8 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -3191,8 +3191,7 @@ void RasterizerStorageGLES3::mesh_add_surface(RID p_mesh, uint32_t p_format, VS: //must have index and bones, both. { uint32_t bones_weight = VS::ARRAY_FORMAT_BONES | VS::ARRAY_FORMAT_WEIGHTS; - ERR_EXPLAIN("Array must have both bones and weights in format or none."); - ERR_FAIL_COND((p_format & bones_weight) && (p_format & bones_weight) != bones_weight); + ERR_FAIL_COND_MSG((p_format & bones_weight) && (p_format & bones_weight) != bones_weight, "Array must have both bones and weights in format or none."); } //bool has_morph = p_blend_shapes.size(); |