PartDesign: improve SubShapeBinder transformation cache

This commit is contained in:
Zheng, Lei
2019-12-19 10:39:01 +08:00
committed by wwmayer
parent a0b14f2dcd
commit 3b8ed7a791
3 changed files with 135 additions and 61 deletions

View File

@@ -317,7 +317,7 @@ void ViewProviderSubShapeBinder::updatePlacement(bool transaction) {
if(!transaction) {
if(relative)
self->Context.setValue(parent,parentSub.c_str());
self->update();
self->update(PartDesign::SubShapeBinder::UpdateForced);
return;
}
@@ -325,7 +325,7 @@ void ViewProviderSubShapeBinder::updatePlacement(bool transaction) {
try{
if(relative)
self->Context.setValue(parent,parentSub.c_str());
self->update();
self->update(PartDesign::SubShapeBinder::UpdateForced);
App::GetApplication().closeActiveTransaction();
return;
}catch(Base::Exception &e) {