* check mouse button in * same for center rectangle --------- Co-authored-by: 49fl <ircsurfer33@gmail.com>
This commit is contained in:
@ -862,6 +862,8 @@ export const modelingMachine = setup({
|
|||||||
}
|
}
|
||||||
sceneInfra.setCallbacks({
|
sceneInfra.setCallbacks({
|
||||||
onClick: (args) => {
|
onClick: (args) => {
|
||||||
|
if (!args) return
|
||||||
|
if (args.mouseEvent.which !== 1) return
|
||||||
const twoD = args.intersectionPoint?.twoD
|
const twoD = args.intersectionPoint?.twoD
|
||||||
if (twoD) {
|
if (twoD) {
|
||||||
sceneInfra.modelingSend({
|
sceneInfra.modelingSend({
|
||||||
@ -893,6 +895,8 @@ export const modelingMachine = setup({
|
|||||||
}
|
}
|
||||||
sceneInfra.setCallbacks({
|
sceneInfra.setCallbacks({
|
||||||
onClick: (args) => {
|
onClick: (args) => {
|
||||||
|
if (!args) return
|
||||||
|
if (args.mouseEvent.which !== 1) return
|
||||||
const twoD = args.intersectionPoint?.twoD
|
const twoD = args.intersectionPoint?.twoD
|
||||||
if (twoD) {
|
if (twoD) {
|
||||||
sceneInfra.modelingSend({
|
sceneInfra.modelingSend({
|
||||||
|
Reference in New Issue
Block a user