diff --git a/Source/CesiumRuntime/Private/CesiumFeatureIdAttribute.cpp b/Source/CesiumRuntime/Private/CesiumFeatureIdAttribute.cpp index 1bd581f88..c8045a59a 100644 --- a/Source/CesiumRuntime/Private/CesiumFeatureIdAttribute.cpp +++ b/Source/CesiumRuntime/Private/CesiumFeatureIdAttribute.cpp @@ -13,6 +13,14 @@ FCesiumFeatureIdAttribute::FCesiumFeatureIdAttribute( _featureIdAccessor(), _attributeIndex(FeatureIDAttribute), _propertyTableName(PropertyTableName) { + const std::string attributeName = + "_FEATURE_ID_" + std::to_string(FeatureIDAttribute); + + auto featureID = Primitive.attributes.find(attributeName); + if (featureID == Primitive.attributes.end()) { + return; + } + this->_featureIdAccessor = CesiumGltf::getFeatureIdAccessorView( Model, Primitive,