Model Loading: Overlays

Cannot copy overlays until the props has been read.
Ticket: #2429
next
Scott Giese 4 years ago
parent d4d149f3c0
commit aab373ac3a

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

Loading…
Cancel
Save