mirror of https://github.com/OpenMW/openmw.git
NIF fixes and cleanup
Get rid of NodeIndexHolder Use unsigned 32-bit type for NIF record index Fix calculation of the number of UV setspull/3024/head
parent
a78aa6b22c
commit
4fc5e22e9e
@ -1,35 +0,0 @@
|
|||||||
#ifndef OPENMW_COMPONENTS_NIFOSG_NODEINDEXHOLDER_H
|
|
||||||
#define OPENMW_COMPONENTS_NIFOSG_NODEINDEXHOLDER_H
|
|
||||||
|
|
||||||
#include <osg/Object>
|
|
||||||
|
|
||||||
namespace NifOsg
|
|
||||||
{
|
|
||||||
|
|
||||||
class NodeIndexHolder : public osg::Object
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
NodeIndexHolder() = default;
|
|
||||||
NodeIndexHolder(int index)
|
|
||||||
: mIndex(index)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
NodeIndexHolder(const NodeIndexHolder& copy, const osg::CopyOp& copyop)
|
|
||||||
: Object(copy, copyop)
|
|
||||||
, mIndex(copy.mIndex)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
META_Object(NifOsg, NodeIndexHolder)
|
|
||||||
|
|
||||||
int getIndex() const { return mIndex; }
|
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
// NIF record index
|
|
||||||
int mIndex{0};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Reference in New Issue