@@ -460,7 +460,7 @@ static void freeModelBuffers(mjModel* m) {
460460// allocate and initialize mjModel structure
461461void mj_makeModel (mjModel * * dest ,
462462 int nq , int nv , int nu , int na , int nbody , int nbvh ,
463- int nbvhstatic , int nbvhdynamic , int njnt , int ngeom , int nsite , int ncam ,
463+ int nbvhstatic , int nbvhdynamic , int noct , int njnt , int ngeom , int nsite , int ncam ,
464464 int nlight , int nflex , int nflexnode , int nflexvert , int nflexedge , int nflexelem ,
465465 int nflexelemdata , int nflexelemedge , int nflexshelldata , int nflexevpair , int nflextexcoord ,
466466 int nmesh , int nmeshvert , int nmeshnormal , int nmeshtexcoord , int nmeshface ,
@@ -499,6 +499,7 @@ void mj_makeModel(mjModel** dest,
499499 m -> nbvh = nbvh ;
500500 m -> nbvhstatic = nbvhstatic ;
501501 m -> nbvhdynamic = nbvhdynamic ;
502+ m -> noct = noct ;
502503 m -> njnt = njnt ;
503504 m -> ngeom = ngeom ;
504505 m -> nsite = nsite ;
@@ -639,7 +640,7 @@ mjModel* mj_copyModel(mjModel* dest, const mjModel* src) {
639640 if (!dest ) {
640641 mj_makeModel (& dest ,
641642 src -> nq , src -> nv , src -> nu , src -> na , src -> nbody , src -> nbvh ,
642- src -> nbvhstatic , src -> nbvhdynamic , src -> njnt , src -> ngeom , src -> nsite ,
643+ src -> nbvhstatic , src -> nbvhdynamic , src -> noct , src -> njnt , src -> ngeom , src -> nsite ,
643644 src -> ncam , src -> nlight , src -> nflex , src -> nflexnode , src -> nflexvert , src -> nflexedge ,
644645 src -> nflexelem , src -> nflexelemdata , src -> nflexelemedge , src -> nflexshelldata ,
645646 src -> nflexevpair , src -> nflextexcoord , src -> nmesh , src -> nmeshvert ,
@@ -835,7 +836,7 @@ mjModel* mj_loadModelBuffer(const void* buffer, int buffer_sz) {
835836 ints [42 ], ints [43 ], ints [44 ], ints [45 ], ints [46 ], ints [47 ], ints [48 ],
836837 ints [49 ], ints [50 ], ints [51 ], ints [52 ], ints [53 ], ints [54 ], ints [55 ],
837838 ints [56 ], ints [57 ], ints [58 ], ints [59 ], ints [60 ], ints [61 ], ints [62 ],
838- ints [63 ], ints [64 ], ints [65 ], ints [66 ], ints [67 ], ints [68 ]);
839+ ints [63 ], ints [64 ], ints [65 ], ints [66 ], ints [67 ], ints [68 ], ints [ 69 ] );
839840 if (!m || m -> nbuffer != sizes [getnsize ()- 1 ]) {
840841 mju_warning ("Corrupted model, wrong size parameters" );
841842 mj_deleteModel (m );
0 commit comments