add codec factory option, improve geo vertex caching, fix surface find in indexed mode
This commit is contained in:
parent
341c971146
commit
d73f72586a
9 changed files with 71 additions and 23 deletions
|
|
@ -518,6 +518,7 @@ export const conf = {
|
|||
camLatheAngle: 1,
|
||||
camLatheLinear: true,
|
||||
camLatheOver: 0.1,
|
||||
camLatheDown: 0,
|
||||
camLatheSpeed: 500,
|
||||
camLatheSpindle: 1000,
|
||||
camLatheTool: 1000,
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import { codec } from '../../core/codec.js';
|
|||
import { consts } from '../../core/consts.js';
|
||||
import { space } from '../../../moto/space.js';
|
||||
import { local } from '../../../data/local.js';
|
||||
import { newWidget } from '../widget.js';
|
||||
import { utils } from '../../core/utils.js';
|
||||
import { version } from '../../../moto/license.js';
|
||||
import { JSZip } from '../../../ext/jszip-esm.js';
|
||||
|
|
@ -608,6 +609,7 @@ function settingsImport(data, ask) {
|
|||
work.type = 100;
|
||||
}
|
||||
}
|
||||
codec.setFactory(codec.TYPE.WIDGET, newWidget);
|
||||
codec.decode(data.work).forEach(widget => {
|
||||
api.platform.add(widget, 0, true, true);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue