Пример #1
0
    void read(NIFStream *nif)
    {
        Node::read(nif);
        children.read(nif);
        effects.read(nif);

        // Discard tranformations for the root node, otherwise some meshes
        // occasionally get wrong orientation. Only for NiNode-s for now, but
        // can be expanded if needed.
        if (0 == recIndex)
        {
            static_cast<Nif::Node*>(this)->trafo = Nif::Transformation::getIdentity();
        }
    }
Пример #2
0
  void read(NIFFile *nif)
  {
    data.read(nif);
    root.read(nif);
    bones.read(nif);

    if(data.empty() || root.empty())
      nif->fail("NiSkinInstance missing root or data");
  }
Пример #3
0
 void read(NIFStream *nif)
 {
     data.read(nif);
     root.read(nif);
     bones.read(nif);
 }
Пример #4
0
 void read(NIFStream *nif)
 {
     Node::read(nif);
     children.read(nif);
     effects.read(nif);
 }