Merge pull request #34487 from supagu/instance_mesh_colours_fix

Fixed error condition check for multimesh instance colors
This commit is contained in:
Rémi Verschelde 2019-12-20 12:07:09 +01:00 committed by GitHub
commit e241057a98

View file

@ -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);