mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 02:54:36 +00:00
Added a check in applyDecorateMode to prevent the start of decorators on empty documents
This commit is contained in:
parent
6b5038dc63
commit
1b67b8c08d
@ -1444,7 +1444,8 @@ void MainWindow::applyDecorateMode()
|
||||
}
|
||||
else{
|
||||
QString errorMessage;
|
||||
if (iDecorateTemp->isDecorationApplicable(action,*(meshDoc()->mm()),errorMessage)) {
|
||||
if (meshDoc()->mm() &&
|
||||
iDecorateTemp->isDecorationApplicable(action,*(meshDoc()->mm()),errorMessage)) {
|
||||
//RichParameterSet * decoratorParams = new RichParameterSet();
|
||||
//iDecorateTemp->initGlobalParameterSet(action,decoratorParams);
|
||||
bool ret = iDecorateTemp->startDecorate(action,*meshDoc(), ¤tGlobalParams, GLA());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user