fix(color): set current model after label update (#2476)
* fix(color): set current model after label update Fixes #2460 Here Companion only outputs a more or less empty labels file, so that models are scanned on startup, however not setting the current model properly in this particular case. * fix(color): bitmap name in modelslist should be zero terminated
This commit is contained in:
@@ -1144,6 +1144,8 @@ bool ModelsList::loadYaml()
|
||||
modelslist.push_back(model);
|
||||
filehash.celladded = true;
|
||||
model->_isDirty = true;
|
||||
if(filehash.curmodel == true)
|
||||
modelslist.setCurrentModel(model);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user