RefTargetHandle TriPatchObject::Clone(RemapDir& remap) { TriPatchObject* newob = new TriPatchObject(); newob->ReplaceReference(0,pblock->Clone(remap)); newob->ivalid.SetEmpty(); BaseClone(this, newob, remap); return(newob); }
RefTargetHandle OptMod::Clone(RemapDir& remap) { OptMod* newmod = new OptMod(); newmod->ReplaceReference(0,pblock->Clone(remap)); BaseClone(this, newmod, remap); return newmod; }
RefTargetHandle MirrorMod::Clone(RemapDir& remap) { MirrorMod *mod = new MirrorMod(); mod->ReplaceReference(PBLOCK_REF,pblock->Clone(remap)); mod->ReplaceReference(TM_REF,remap.CloneRef(tmControl)); mod->splineMethod = splineMethod; BaseClone(this, mod, remap); return mod; }
RefTargetHandle AFRMod::Clone(RemapDir& remap) { AFRMod *mod = new AFRMod(); mod->ReplaceReference(PBLOCK_REF,pblock->Clone(remap)); mod->ReplaceReference(POINT1_REF,p1->Clone(remap)); mod->ReplaceReference(POINT2_REF,p2->Clone(remap)); BaseClone(this, mod, remap); return mod; }
RefTargetHandle SpherifyMod::Clone(RemapDir& remap) { SpherifyMod* newmod = new SpherifyMod(); newmod->ReplaceReference(0, pblock->Clone(remap)); BaseClone(this, newmod, remap); return(newmod); }