Assembly: BOM, support superset property type only

This commit is contained in:
Furgo
2025-04-22 17:53:18 +02:00
parent d4925e7a04
commit 04af6c5b37

View File

@@ -276,16 +276,6 @@ std::string BomObject::getBomPropertyValue(App::DocumentObject* obj, const std::
if (auto propStr = dynamic_cast<App::PropertyString*>(prop)) {
return propStr->getValue();
}
else if (auto propLength = dynamic_cast<App::PropertyLength*>(prop)) {
auto unit = propLength->getUnit().getString();
auto value = std::to_string(propLength->getValue());
return value + " " + unit;
}
else if (auto propVolume = dynamic_cast<App::PropertyVolume*>(prop)) {
auto unit = propVolume->getUnit().getString();
auto value = std::to_string(propVolume->getValue());
return value + " " + unit;
}
else if (auto propQuantity = dynamic_cast<App::PropertyQuantity*>(prop)) {
auto unit = propQuantity->getUnit().getString();
auto value = std::to_string(propQuantity->getValue());