small refactor
This commit is contained in:
parent
3fd845e5b7
commit
4001b5aa34
|
|
@ -73,21 +73,20 @@ public:
|
||||||
if(propName=="")
|
if(propName=="")
|
||||||
propName=attrName;
|
propName=attrName;
|
||||||
|
|
||||||
|
PropDescriptor p;
|
||||||
|
p.propname=propName;
|
||||||
|
p.stotype1 = propertyType;
|
||||||
|
p.memtype1 = propertyType;
|
||||||
|
|
||||||
if (elemType == 0){ //vertex
|
if (elemType == 0){ //vertex
|
||||||
VertDescriptorVec.push_back(PropDescriptor());
|
|
||||||
VertAttrNameVec.push_back(attrName);
|
VertAttrNameVec.push_back(attrName);
|
||||||
VertDescriptorVec.back().elemname="vertex";
|
p.elemname="vertex";
|
||||||
VertDescriptorVec.back().propname=propName;
|
VertDescriptorVec.push_back(p);
|
||||||
VertDescriptorVec.back().stotype1 = propertyType;
|
|
||||||
VertDescriptorVec.back().memtype1 = propertyType;
|
|
||||||
}
|
}
|
||||||
else if (elemType == 1){ //face
|
else if (elemType == 1){ //face
|
||||||
FaceDescriptorVec.push_back(PropDescriptor());
|
|
||||||
FaceAttrNameVec.push_back(attrName);
|
FaceAttrNameVec.push_back(attrName);
|
||||||
FaceDescriptorVec.back().elemname="face";
|
p.elemname="face";
|
||||||
FaceDescriptorVec.back().propname=propName;
|
FaceDescriptorVec.push_back(p);
|
||||||
FaceDescriptorVec.back().stotype1 = propertyType;
|
|
||||||
FaceDescriptorVec.back().memtype1 = propertyType;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -117,7 +116,6 @@ public:
|
||||||
AddPerElemFloatAttribute(1,attrName,propName);
|
AddPerElemFloatAttribute(1,attrName,propName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Note that saving a per vertex point3 attribute is a mess.
|
/* Note that saving a per vertex point3 attribute is a mess.
|
||||||
* Actually require to allocate 3 float attribute and save them. And they are never deallocated... */
|
* Actually require to allocate 3 float attribute and save them. And they are never deallocated... */
|
||||||
template<class MeshType>
|
template<class MeshType>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue