Explorar el Código

Add a separate ground-snapping option

This used to be controlled by the y-axis-lock setting.
master
Fen Dweller hace 4 años
padre
commit
ca3b61c19c
Se han modificado 1 ficheros con 13 adiciones y 1 borrados
  1. +13
    -1
      macrovision.js

+ 13
- 1
macrovision.js Ver fichero

@@ -507,7 +507,7 @@ function constrainRel(coords) {
function snapPos(coords) {
return {
x: coords.x,
y: (!config.lockYAxis || altHeld) ? coords.y : (Math.abs(coords.y) < config.height.toNumber("meters")/20 ? 0 : coords.y)
y: (!config.groundSnap || altHeld) ? coords.y : (Math.abs(coords.y) < config.height.toNumber("meters")/20 ? 0 : coords.y)
};
}

@@ -2673,6 +2673,18 @@ const settingsData = {
}
}
},
"ground-snap": {
name: "Snap to Ground",
desc: "Snap things to the ground",
type: "toggle",
default: true,
get value() {
return config.groundSnap;
},
set value(param) {
config.groundSnap = param;
}
},
"axis-spacing": {
name: "Axis Spacing",
desc: "How frequent the axis lines are",


Cargando…
Cancelar
Guardar