fixed some compiling issues
parent
8ba4d30d7c
commit
a8a6aa2bd8
|
@ -110,7 +110,7 @@ struct X3DNodeElementBase {
|
|||
|
||||
protected:
|
||||
X3DNodeElementBase(X3DElemType type, X3DNodeElementBase *pParent) :
|
||||
Type(type), Parent(pParent) {
|
||||
Parent(pParent), Type(type) {
|
||||
// empty
|
||||
}
|
||||
};
|
||||
|
|
|
@ -703,7 +703,7 @@ void X3DImporter::Postprocess_CollectMetadata(const X3DNodeElementBase &pNodeEle
|
|||
// Add an element according to its type.
|
||||
if ((*it)->Type == X3DElemType::ENET_MetaBoolean) {
|
||||
if (((X3DNodeElementMetaBoolean *)cur_meta)->Value.size() > 0)
|
||||
pSceneNode.mMetaData->Set(static_cast<unsigned int>(meta_idx), cur_meta->Name, *(((X3DNodeElementMetaBoolean *)cur_meta)->Value.begin()));
|
||||
pSceneNode.mMetaData->Set(static_cast<unsigned int>(meta_idx), cur_meta->Name, *(((X3DNodeElementMetaBoolean *)cur_meta)->Value.begin()) == true);
|
||||
} else if ((*it)->Type == X3DElemType::ENET_MetaDouble) {
|
||||
if (((X3DNodeElementMetaDouble *)cur_meta)->Value.size() > 0)
|
||||
pSceneNode.mMetaData->Set(static_cast<unsigned int>(meta_idx), cur_meta->Name, (float)*(((X3DNodeElementMetaDouble *)cur_meta)->Value.begin()));
|
||||
|
|
Loading…
Reference in New Issue