mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
Consoles: Fix custom models never working and crashing Vita port
This commit is contained in:
parent
9f7a7bcfb5
commit
3e8fc0ddcf
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user