ReignEngine: Fix rendering issue of skinned models without motion

This fixes a bug where skinned instances with no motion loaded were not
drawn.
This commit is contained in:
kichikuou
2022-12-24 16:54:40 +09:00
parent 06b9da800c
commit eb13ae0cc1
+1 -1
View File
@@ -410,7 +410,7 @@ static void render_skinned_model(struct RE_instance *inst, struct RE_renderer *r
if (!model)
return;
if (model->nr_bones > 0) {
if (model->nr_bones > 0 && inst->motion) {
glUniform1i(r->has_bones, GL_TRUE);
glUniformMatrix4fv(r->bone_matrices, model->nr_bones, GL_FALSE, inst->bone_transforms[0][0]);
} else {