fixed some compiling issues

This commit is contained in:
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

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