fix wrong static usage on PerElement PlyInfo
This commit is contained in:
parent
34af1c91bd
commit
ea276afef7
|
@ -66,7 +66,7 @@ public:
|
||||||
enum {
|
enum {
|
||||||
IOM_NONE = 0x00000,
|
IOM_NONE = 0x00000,
|
||||||
|
|
||||||
IOM_VERTCOORD = 0x00001,
|
IOM_VERTCOORD = 0x00001,
|
||||||
IOM_VERTFLAGS = 0x00002,
|
IOM_VERTFLAGS = 0x00002,
|
||||||
IOM_VERTCOLOR = 0x00004,
|
IOM_VERTCOLOR = 0x00004,
|
||||||
IOM_VERTQUALITY = 0x00008,
|
IOM_VERTQUALITY = 0x00008,
|
||||||
|
|
|
@ -69,8 +69,8 @@ public:
|
||||||
void AddPerElemFloatAttribute(int elemType, const char *attrName, const char * propName=0)
|
void AddPerElemFloatAttribute(int elemType, const char *attrName, const char * propName=0)
|
||||||
{
|
{
|
||||||
static const char *elemStr[2]={"vertex","face"};
|
static const char *elemStr[2]={"vertex","face"};
|
||||||
static std::vector<PropDescriptor> *elemDescVec[2]={&(this->VertDescriptorVec), &(this->FaceDescriptorVec)};
|
std::vector<PropDescriptor> *elemDescVec[2]={&(this->VertDescriptorVec), &(this->FaceDescriptorVec)};
|
||||||
static std::vector<std::string > *elemNameVec[2]={&(this->VertAttrNameVec), &(this->FaceAttrNameVec)};
|
std::vector<std::string > *elemNameVec[2]={&(this->VertAttrNameVec), &(this->FaceAttrNameVec)};
|
||||||
|
|
||||||
if(propName==0) propName=attrName;
|
if(propName==0) propName=attrName;
|
||||||
elemDescVec[elemType]->push_back(PropDescriptor());
|
elemDescVec[elemType]->push_back(PropDescriptor());
|
||||||
|
|
Loading…
Reference in New Issue