mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 19:14:42 +00:00
Corrected random bug in filter creation caused by the fact that when creating a mesh on a empy document the current mesh is null and no state should be saved...
This commit is contained in:
parent
944ad3b58c
commit
4bed96e346
@ -280,19 +280,19 @@ void MeshlabStdDialog::applyClick()
|
||||
QAction *q = curAction;
|
||||
stdParFrame->readValues(curParSet);
|
||||
|
||||
////int mask = 0;//curParSet.getDynamicFloatMask();
|
||||
if(curmask)
|
||||
// Note that curModel CAN BE NULL (for creation filters on empty docs...)
|
||||
if(curmask && curModel)
|
||||
meshState.apply(curModel);
|
||||
|
||||
//PreView Caching: if the apply parameters are the same to those used in the preview mode
|
||||
//we don't need to reapply the filter to the mesh
|
||||
bool isEqual = (curParSet == prevParSet);
|
||||
if ((isEqual) && (validcache))
|
||||
if (curModel && (isEqual) && (validcache))
|
||||
meshCacheState.apply(curModel);
|
||||
else
|
||||
curmwi->executeFilter(q, curParSet, false);
|
||||
|
||||
if(curmask)
|
||||
if(curmask && curModel)
|
||||
meshState.create(curmask, curModel);
|
||||
if(this->curgla)
|
||||
this->curgla->update();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user