Skip to content

Commit

Permalink
Handle missing model type on Base Folder creation xLightsSequencer#4441
Browse files Browse the repository at this point in the history
  • Loading branch information
derwin12 committed Apr 5, 2024
1 parent 406a218 commit a9d1d20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xLights/models/ModelManager.cpp
Expand Up @@ -1363,6 +1363,9 @@ Model* ModelManager::CreateModel(wxXmlNode* node, int previewW, int previewH, bo
return grp;
}
std::string type = node->GetAttribute("DisplayAs").ToStdString();
if (type.empty()) {
if (Lower(node->GetName().ToStdString()) == "custommodel") type = "Custom";
}

// Upgrade older DMX models
if (type == "DMX") {
Expand Down

0 comments on commit a9d1d20

Please sign in to comment.