mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-10 18:36:30 +01:00
allow datum to be selected during operation
This commit is contained in:
parent
50129d36a9
commit
095ce44ed7
1 changed files with 7 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {EDGE, FACE, SHELL, SKETCH_OBJECT} from '../../scene/entites';
|
||||
import {DATUM, EDGE, FACE, SHELL, SKETCH_OBJECT} from '../../scene/entites';
|
||||
|
||||
export function activate(ctx) {
|
||||
ctx.streams.wizard.wizardContext.attach(wizCtx => {
|
||||
|
|
@ -144,6 +144,12 @@ function createPickHandlerFromSchema(wizCtx) {
|
|||
} else {
|
||||
selectToFirst(EDGE, model.id);
|
||||
}
|
||||
} else if (modelType === DATUM) {
|
||||
if (activeEntity === DATUM) {
|
||||
selectActive(model.id);
|
||||
} else {
|
||||
selectToFirst(DATUM, model.id);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue