mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 11:03:13 -05:00
Fixed error condition check for multimesh instance colors
This commit is contained in:
parent
2db8f40bd7
commit
ba6d9597cb
1 changed files with 1 additions and 1 deletions
|
@ -2616,7 +2616,7 @@ void RasterizerStorageRD::multimesh_instance_set_color(RID p_multimesh, int p_in
|
|||
MultiMesh *multimesh = multimesh_owner.getornull(p_multimesh);
|
||||
ERR_FAIL_COND(!multimesh);
|
||||
ERR_FAIL_INDEX(p_index, multimesh->instances);
|
||||
ERR_FAIL_INDEX(p_index, !multimesh->uses_colors);
|
||||
ERR_FAIL_COND(!multimesh->uses_colors);
|
||||
|
||||
_multimesh_make_local(multimesh);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue