From f526e0418ed38d41ea05e4dc7c26a1b53e1c0545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 23 May 2022 12:56:53 +0200 Subject: [PATCH] sceneconverter: store IDs of custom field names instead of raw values. --- src/Magnum/SceneTools/sceneconverter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Magnum/SceneTools/sceneconverter.cpp b/src/Magnum/SceneTools/sceneconverter.cpp index e3ea15e91..4971792e9 100644 --- a/src/Magnum/SceneTools/sceneconverter.cpp +++ b/src/Magnum/SceneTools/sceneconverter.cpp @@ -517,7 +517,7 @@ is specified as well, the IDs reference attributes of the first mesh.)") reused by object info as well. */ if(Trade::isSceneFieldCustom(name)) { /* Fetch the name only if it's not already there */ - const auto inserted = sceneFieldNames.emplace(UnsignedInt(name), Containers::String{}); + const auto inserted = sceneFieldNames.emplace(sceneFieldCustom(name), Containers::String{}); if(inserted.second) inserted.first->second = importer->sceneFieldName(name); } @@ -829,7 +829,7 @@ is specified as well, the IDs reference attributes of the first mesh.)") << Trade::sceneFieldCustom(field.name) << Debug::nospace << ":" << Debug::nospace << Debug::color(Debug::Color::Yellow) - << sceneFieldNames[UnsignedInt(field.name)] + << sceneFieldNames[sceneFieldCustom(field.name)] << Debug::nospace << Debug::boldColor(Debug::Color::White) << ")"; } else d << Debug::packed << field.name; @@ -880,7 +880,7 @@ is specified as well, the IDs reference attributes of the first mesh.)") << Trade::sceneFieldCustom(nameCount.first()) << Debug::nospace << ":" << Debug::nospace << Debug::color(Debug::Color::Yellow) - << sceneFieldNames[UnsignedInt(nameCount.first())] + << sceneFieldNames[sceneFieldCustom(nameCount.first())] << Debug::nospace << Debug::color(Debug::Color::Cyan) << ")"; } else d << Debug::packed << nameCount.first();