forked from Mirrors/openclonk
GL Legacy: Survive skinning meshes with no bones
parent
ef5b39a290
commit
cc595ec58d
|
@ -664,7 +664,7 @@ namespace
|
|||
{
|
||||
// If the first bone assignment has a weight of 0, all others are zero
|
||||
// as well, or the loader would have overwritten the assignment
|
||||
if (in.bone_weight[0] == 0.0f)
|
||||
if (in.bone_weight[0] == 0.0f || mesh_instance.GetBoneCount() == 0)
|
||||
{
|
||||
out->x = in.x;
|
||||
out->y = in.y;
|
||||
|
|
Loading…
Reference in New Issue