fixed some compiling issues

pull/4079/head
René Martin 2021-09-15 14:49:46 +02:00
parent 8ba4d30d7c
commit a8a6aa2bd8
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ struct X3DNodeElementBase {
protected:
X3DNodeElementBase(X3DElemType type, X3DNodeElementBase *pParent) :
Type(type), Parent(pParent) {
Parent(pParent), Type(type) {
// empty
}
};

View File

@ -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()));