mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 11:26:11 +00:00
- changed nonapplicable decorator error message with something a lot more meaningful
This commit is contained in:
parent
d173e617a0
commit
e51170d0be
@ -1328,7 +1328,8 @@ void GLArea::updateDecorator(QString name, bool toggle, bool stateToSet)
|
||||
else{
|
||||
if(toggle || stateToSet==true){
|
||||
QString errorMessage;
|
||||
if (iDecorateTemp->isDecorationApplicable(action,currentMeshModel,errorMessage)) {
|
||||
if (iDecorateTemp->isDecorationApplicable(action,currentMeshModel,errorMessage))
|
||||
{
|
||||
iDecorateTemp->setLog(&md()->Log);
|
||||
bool ret = iDecorateTemp->startDecorate(action,currentMeshModel, glas.currentGlobalParamSet, this);
|
||||
if(ret) {
|
||||
@ -1337,7 +1338,7 @@ void GLArea::updateDecorator(QString name, bool toggle, bool stateToSet)
|
||||
}
|
||||
else this->Logf(GLLogStream::SYSTEM,"Failed Decorate mode %s",qPrintable(action->text()));
|
||||
} else
|
||||
this->Logf(GLLogStream::SYSTEM,"Trying to enable an already enabled Decorate mode %s",qPrintable(action->text()));
|
||||
this->Logf(GLLogStream::SYSTEM,"Error in Decorate mode %s: %s",qPrintable(action->text()),qPrintable(errorMessage));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user