diff --git a/src/plugins/Squeak3D/Squeak3D.c b/src/plugins/Squeak3D/Squeak3D.c index 5bb8d80bdf..f7c0daedf3 100644 --- a/src/plugins/Squeak3D/Squeak3D.c +++ b/src/plugins/Squeak3D/Squeak3D.c @@ -1,9 +1,9 @@ /* Automatically generated by - VMPluginCodeGenerator VMMaker.oscog-eem.2719 uuid: e40f3e94-3a54-411b-9613-5d19114ea131 + VMPluginCodeGenerator VMMaker.oscog-eem.2721 uuid: ae80c101-9b76-4d26-907a-6466e4269ad7 from - B3DEnginePlugin Balloon3D-Plugins-eem.15 uuid: d694149b-363b-4754-aa4a-7ef0cb2c5eab + B3DEnginePlugin Balloon3D-Plugins-nice.16 uuid: 961cec73-badd-4b71-8d02-9233e3122e21 */ -static char __buildInfo[] = "B3DEnginePlugin Balloon3D-Plugins-eem.15 uuid: d694149b-363b-4754-aa4a-7ef0cb2c5eab " __DATE__ ; +static char __buildInfo[] = "B3DEnginePlugin Balloon3D-Plugins-nice.16 uuid: 961cec73-badd-4b71-8d02-9233e3122e21 " __DATE__ ; @@ -280,7 +280,7 @@ static double l2vSpecDir[3]; static sqInt lightFlags; static float* litVertex; static sqInt loadBBFn; -static const char *moduleName = "Squeak3D Balloon3D-Plugins-eem.15 " INT_EXT; +static const char *moduleName = "Squeak3D Balloon3D-Plugins-nice.16 " INT_EXT; static float* primLight; static float* primMaterial; static sqInt vbFlags; @@ -2942,10 +2942,10 @@ loadRasterizerState(sqInt stackIndex) if (!(isWords(obj))) { return 0; } - objLen = slotSizeOf(obj); + objLen = byteSizeOf(obj); objPtr = firstIndexableField(obj); state.objects = (B3DPrimitiveObject **)objPtr; - state.nObjects = objLen; + state.nObjects = objLen/sizeof(B3DPrimitiveObject *); } obj = fetchPointerofObject(7, stateOop); if (obj == (nilObject())) {