added fix for primitive objects not being batched because the static property was set before the mesh was generated