diff --git a/simgear/scene/model/SGReaderWriterXML.cxx b/simgear/scene/model/SGReaderWriterXML.cxx index 9b1a9780..c3f23d44 100644 --- a/simgear/scene/model/SGReaderWriterXML.cxx +++ b/simgear/scene/model/SGReaderWriterXML.cxx @@ -528,15 +528,16 @@ sgLoad3DModel_internal(const SGPath& path, // Check for an XML wrapper if (modelpath.extension() == "xml") { try { - if (overlay) - copyProperties(overlay, props); - readProperties(modelpath, props); } catch (const sg_exception &t) { SG_LOG(SG_IO, SG_DEV_ALERT, "Failed to load xml: " << t.getFormattedMessage()); throw; } + + if (overlay) + copyProperties(overlay, props); + if (options->getAutoTooltipsMaster()) { addTooltipAnimations(path, props, model, options->getAutoTooltipsMasterMax()); }