forked from mirror/openmw-tes3mp
Trying to get code to conform with older c++
This commit is contained in:
parent
d855bb4fc6
commit
cef2f5e927
5 changed files with 8 additions and 7 deletions
|
@ -31,7 +31,7 @@ class Animation{
|
|||
|
||||
//Only shapes with morphing data will need a shape number
|
||||
int shapeNumber;
|
||||
std::vector<std::vector<int>> shapeIndexI;
|
||||
std::vector<std::vector<int> > shapeIndexI;
|
||||
|
||||
//Ogre::SkeletonInstance* skel;
|
||||
std::vector<Nif::NiTriShapeCopy>* shapes; //All the NiTriShapeData for this creature
|
||||
|
|
|
@ -18,7 +18,7 @@ class NpcAnimation: public Animation{
|
|||
std::vector<Ogre::Entity*> entityparts;
|
||||
Ogre::Entity* hand;
|
||||
Ogre::SceneNode* insert;
|
||||
std::vector<std::vector<Nif::NiTriShapeCopy>*> shapeparts; //All the NiTriShape data that we need for animating this particular npc
|
||||
std::vector<std::vector<Nif::NiTriShapeCopy>* > shapeparts; //All the NiTriShape data that we need for animating this particular npc
|
||||
public:
|
||||
NpcAnimation(const MWWorld::Ptr& ptr, MWWorld::Environment& _env, OEngine::Render::OgreRenderer& _rend);
|
||||
~NpcAnimation();
|
||||
|
|
|
@ -429,9 +429,9 @@ class NiMorphData : public Record
|
|||
float startTime;
|
||||
float stopTime;
|
||||
std::vector<Ogre::Vector3> initialVertices;
|
||||
std::vector<std::vector<float>> relevantTimes;
|
||||
std::vector<std::vector<Ogre::Vector3>> relevantData;
|
||||
std::vector<std::vector<Ogre::Vector3>> additionalVertices;
|
||||
std::vector<std::vector<float> > relevantTimes;
|
||||
std::vector<std::vector<Ogre::Vector3> > relevantData;
|
||||
std::vector<std::vector<Ogre::Vector3> > additionalVertices;
|
||||
|
||||
|
||||
public:
|
||||
|
@ -457,7 +457,7 @@ public:
|
|||
std::vector<std::vector<float>> getRelevantTimes(){
|
||||
return relevantTimes;
|
||||
}
|
||||
std::vector<std::vector<Ogre::Vector3>> getAdditionalVertices(){
|
||||
std::vector<std::vector<Ogre::Vector3> > getAdditionalVertices(){
|
||||
return additionalVertices;
|
||||
}
|
||||
|
||||
|
|
|
@ -1250,7 +1250,7 @@ void NIFLoader::loadResource(Resource *resource)
|
|||
Nif::Node *o = dynamic_cast<Nif::Node*>(f->target.getPtr());
|
||||
Nif::NiKeyframeDataPtr data = f->data;
|
||||
|
||||
if (f->timeStart == FLT_MAX)
|
||||
if (f->timeStart == 10000000000000000)
|
||||
continue;
|
||||
data->setBonename(o->name.toString());
|
||||
data->setStartTime(f->timeStart);
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include <boost/algorithm/string.hpp>
|
||||
#include <Ogre.h>
|
||||
#include <stdio.h>
|
||||
#include <iostream>
|
||||
|
||||
#include <libs/mangle/vfs/servers/ogre_vfs.hpp>
|
||||
#include "../nif/nif_file.hpp"
|
||||
|
|
Loading…
Reference in a new issue