Better snap axis defaults.

This commit is contained in:
Relintai 2019-11-06 13:44:22 +01:00
parent 3f7b422662
commit f23f3122a4
2 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ void VoxelmanProp::set_props(const Vector<Variant> &props) {
VoxelmanProp::VoxelmanProp() { VoxelmanProp::VoxelmanProp() {
_snap_to_mesh = true; _snap_to_mesh = true;
_snap_axis = Vector3(0, 1, 0); _snap_axis = Vector3(0, -1, 0);
} }
VoxelmanProp::~VoxelmanProp() { VoxelmanProp::~VoxelmanProp() {
_props.clear(); _props.clear();

View File

@ -90,6 +90,7 @@ VoxelChunkPropData::VoxelChunkPropData() {
_z = 0; _z = 0;
_scale = Vector3(1, 1, 1); _scale = Vector3(1, 1, 1);
_snap_to_mesh = false; _snap_to_mesh = false;
_snap_axis = Vector3(0, -1, 0);
} }
VoxelChunkPropData::~VoxelChunkPropData() { VoxelChunkPropData::~VoxelChunkPropData() {
_mesh.unref(); _mesh.unref();