fix selection update after face-down op
This commit is contained in:
parent
03a9eb396f
commit
57b0c3d50b
1 changed files with 5 additions and 2 deletions
|
|
@ -316,7 +316,7 @@ function space_init(data) {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let rot;
|
let rot, floor = true;
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case 'KeyA':
|
case 'KeyA':
|
||||||
if (metaKey || ctrlKey) {
|
if (metaKey || ctrlKey) {
|
||||||
|
|
@ -355,6 +355,7 @@ function space_init(data) {
|
||||||
if (shiftKey) {
|
if (shiftKey) {
|
||||||
rot = selection.rotate(0,-rv,0);
|
rot = selection.rotate(0,-rv,0);
|
||||||
} else {
|
} else {
|
||||||
|
floor = false;
|
||||||
rot = selection.rotate(0,0,rv);
|
rot = selection.rotate(0,0,rv);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
@ -362,11 +363,12 @@ function space_init(data) {
|
||||||
if (shiftKey) {
|
if (shiftKey) {
|
||||||
rot = selection.rotate(0,rv,0);
|
rot = selection.rotate(0,rv,0);
|
||||||
} else {
|
} else {
|
||||||
|
floor = false;
|
||||||
rot = selection.rotate(0,0,-rv);
|
rot = selection.rotate(0,0,-rv);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (rot && true) {
|
if (rot && floor) {
|
||||||
// todo future pref to auto-floor or not
|
// todo future pref to auto-floor or not
|
||||||
rot.floor(mesh.group);
|
rot.floor(mesh.group);
|
||||||
}
|
}
|
||||||
|
|
@ -395,6 +397,7 @@ function space_init(data) {
|
||||||
} else if (ctrlKey) {
|
} else if (ctrlKey) {
|
||||||
// rotate selected face towawrd z "floor"
|
// rotate selected face towawrd z "floor"
|
||||||
group.faceDown(int.face.normal);
|
group.faceDown(int.face.normal);
|
||||||
|
selection.update();
|
||||||
} else {
|
} else {
|
||||||
let { modes } = api;
|
let { modes } = api;
|
||||||
switch(api.mode.get()) {
|
switch(api.mode.get()) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue