public void Insert(Model9 model, Entity entity, MetaModel metaModel, string metaName, SkinnedMesh skinnedMesh, SlimDX.Direct3D9.Mesh mesh, bool halfSkinned)
 {
     if (skinnedMesh != null)
     {
         RenderSkinnedMesh sm;
         if (!SkinnedMeshes.TryGetValue(skinnedMesh, out sm))
             SkinnedMeshes[skinnedMesh] = sm = new RenderSkinnedMesh();
         sm.Insert(model, entity, metaModel, metaName);
     }
     else if (mesh != null)
     {
         RenderMesh m;
         if (!Meshes.TryGetValue(mesh, out m))
             Meshes[mesh] = m = new RenderMesh(mesh.IndexBuffer, mesh.VertexBuffer);
         m.Insert(model, entity, metaModel, metaName);
     }
 }
 public void Insert(Model9 model, Entity entity, MetaModel metaModel, string metaName, SkinnedMesh skinnedMesh, SlimDX.Direct3D9.Mesh mesh, bool halfSkinned)
 {
     if (skinnedMesh != null)
     {
         RenderSkinnedMesh sm;
         if (!SkinnedMeshes.TryGetValue(skinnedMesh, out sm))
         {
             SkinnedMeshes[skinnedMesh] = sm = new RenderSkinnedMesh();
         }
         sm.Insert(model, entity, metaModel, metaName);
     }
     else if (mesh != null)
     {
         RenderMesh m;
         if (!Meshes.TryGetValue(mesh, out m))
         {
             Meshes[mesh] = m = new RenderMesh(mesh.IndexBuffer, mesh.VertexBuffer);
         }
         m.Insert(model, entity, metaModel, metaName);
     }
 }