fix paint on support for translated widgets, apply belt transforms to manual paint points at slice time
This commit is contained in:
parent
dce90fab07
commit
d581db53c0
5 changed files with 28 additions and 6 deletions
|
|
@ -302,8 +302,14 @@ function supportStart({ remove } = { remove: false }) {
|
|||
|
||||
function supportUpdate(point, widget, remove) {
|
||||
let { x, y, z } = point;
|
||||
let pos = widget.track.pos;
|
||||
// translate from three coordinates to widget coordinates
|
||||
let rec = {
|
||||
point: { x, y:-z, z:y },
|
||||
point: {
|
||||
x: x - pos.x,
|
||||
y: -z - pos.y,
|
||||
z: y - pos.z
|
||||
},
|
||||
radius: 2
|
||||
};
|
||||
// return console.log({ on, widget, point });
|
||||
|
|
|
|||
Loading…
Reference in a new issue