virtual void proc(ILoad *iload) { if (cb == NULL || !cb->IsValid()) { delete this; return; } ReferenceTarget* targ = cb->GetTarget(); cb->proc(iload); cb = NULL; if (tex) { ((TriPatchObject*)targ)->pblock->SetValue(PB_TEXTURE,0,1); } delete this; }
void ExtrudePostLoadCallback::proc(ILoad *iload) { DWORD oldVer = ((ExtrudeMod*)(cb->targ))->pblock->GetVersion(); ReferenceTarget *targ = cb->targ; cb->proc(iload); if (oldVer<4) ((ExtrudeMod*)targ)->pblock->SetValue(PB_GEN_MATIDS,0,FALSE); if (oldVer<5) ((ExtrudeMod*)targ)->pblock->SetValue(PB_USE_SHAPEIDS,0,FALSE); if (oldVer<6) ((ExtrudeMod*)targ)->pblock->SetValue(PB_SMOOTH,0,TRUE); // russom - 11/19/01 // If file loaded has the lathe output set to NURBS, set it Mesh #ifdef NO_NURBS int output; ((ExtrudeMod*)targ)->pblock->GetValue(PB_OUTPUT, TimeValue(0), output, FOREVER); if( output == NURBS_OUTPUT ) ((ExtrudeMod*)targ)->pblock->SetValue(PB_OUTPUT, TimeValue(0), MESH_OUTPUT); #endif // russom - 11/19/01 // If file loaded has the lathe output set to Patches, set it Mesh #ifdef NO_PATCHES int outputPatch; ((ExtrudeMod*)targ)->pblock->GetValue(PB_OUTPUT, TimeValue(0), outputPatch, FOREVER); if( outputPatch == PATCH_OUTPUT ) ((ExtrudeMod*)targ)->pblock->SetValue(PB_OUTPUT, TimeValue(0), MESH_OUTPUT); #endif delete this; }
void proc(ILoad *iload) { ReferenceTarget *targ = cb->targ; cb->proc(iload); if (tex) { ((TriPatchObject*)targ)->pblock->SetValue(PB_TEXTURE,0,1); } delete this; }
void proc(ILoad *iload) { DWORD oldVer = ((PBombObject*)(cb->targ))->pblock->GetVersion(); ReferenceTarget *targ = cb->targ; cb->proc(iload); if (oldVer<1) ((PBombObject*)targ)->pblock->SetValue(PB_RANGEON,0,0); delete this; }
void MirrorPostLoadCallback::proc(ILoad *iload) { DWORD oldVer = ((MirrorMod*)(cb->targ))->pblock->GetVersion(); ReferenceTarget *targ = cb->targ; cb->proc(iload); if (oldVer<1) ((MirrorMod*)targ)->splineMethod = SPLINE_REVERSE; delete this; }
void proc(ILoad *iload) { DWORD oldVer = ((RectangleObject*)(cb->targ))->pblock->GetVersion(); ReferenceTarget *targ = cb->targ; cb->proc(iload); if (oldVer==0) { ((RectangleObject*)targ)->pblock->SetValue(PB_FILLET,0,0.0f); } delete this; }