Consoles: Fix custom models never working and crashing Vita port

This commit is contained in:
UnknownShadow200 2024-08-12 21:42:35 +10:00
parent 9f7a7bcfb5
commit 3e8fc0ddcf

View File

@ -876,6 +876,7 @@ void CustomModel_Register(struct CustomModel* cm) {
CheckMaxVertices(); CheckMaxVertices();
cm->model.name = cm->name; cm->model.name = cm->name;
cm->model.defaultTex = &customDefaultTex; cm->model.defaultTex = &customDefaultTex;
cm->model.maxVertices = cm->numParts * MODEL_BOX_VERTICES;
cm->model.MakeParts = Model_NoParts; cm->model.MakeParts = Model_NoParts;
cm->model.Draw = CustomModel_Draw; cm->model.Draw = CustomModel_Draw;