File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1183,7 +1183,7 @@ function createSolidsApi(getApi) {
11831183 try {
11841184 let result = null ;
11851185 let passReason = reason ;
1186- for ( let pass = 0 ; pass < 2 ; pass ++ ) {
1186+ for ( let pass = 0 ; pass < 3 ; pass ++ ) {
11871187 api . sketchRuntime ?. sync ?. ( ) ;
11881188 const snapshot = buildRebuildSnapshot ( api ) ;
11891189 try {
@@ -1221,12 +1221,24 @@ function createSolidsApi(getApi) {
12211221 }
12221222 }
12231223 const rebound = this . refreshSketchFaceAttachments ( ) ;
1224- if ( rebound && pass === 0 ) {
1224+ if ( rebound || derivedChanged ) {
1225+ await api . document . save ( {
1226+ kind : 'micro' ,
1227+ opType : 'feature.auto.refresh' ,
1228+ undoable : false ,
1229+ clearRedo : false ,
1230+ payload : {
1231+ rebound : ! ! rebound ,
1232+ derived : ! ! derivedChanged
1233+ }
1234+ } ) ;
1235+ }
1236+ if ( rebound && pass < 2 ) {
12251237 api . sketchRuntime ?. sync ?. ( ) ;
12261238 passReason = 'sketch.face.rebind' ;
12271239 continue ;
12281240 }
1229- if ( derivedChanged && pass === 0 ) {
1241+ if ( derivedChanged && pass < 2 ) {
12301242 api . sketchRuntime ?. sync ?. ( ) ;
12311243 passReason = 'sketch.derived.refresh' ;
12321244 continue ;
You can’t perform that action at this time.
0 commit comments