prim.PrimData = data;
// Textures, texture animations, particle system, and extra params
prim.Textures = objectupdate.Textures;
prim.TextureAnim = new TextureAnimation(block.TextureAnim, 0);
//FIXME need to fix the following exception
try{
prim.ParticleSys = new ParticleSystem(block.PSBlock, 0);
}