From f23f3122a4c0e4f1ce296d64e86c4cf5f91499a8 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 6 Nov 2019 13:44:22 +0100 Subject: [PATCH] Better snap axis defaults. --- props/voxelman_prop.cpp | 2 +- world/voxel_chunk_prop_data.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/props/voxelman_prop.cpp b/props/voxelman_prop.cpp index 7234011..869a45c 100644 --- a/props/voxelman_prop.cpp +++ b/props/voxelman_prop.cpp @@ -55,7 +55,7 @@ void VoxelmanProp::set_props(const Vector &props) { VoxelmanProp::VoxelmanProp() { _snap_to_mesh = true; - _snap_axis = Vector3(0, 1, 0); + _snap_axis = Vector3(0, -1, 0); } VoxelmanProp::~VoxelmanProp() { _props.clear(); diff --git a/world/voxel_chunk_prop_data.cpp b/world/voxel_chunk_prop_data.cpp index eb7b519..22d05f0 100644 --- a/world/voxel_chunk_prop_data.cpp +++ b/world/voxel_chunk_prop_data.cpp @@ -90,6 +90,7 @@ VoxelChunkPropData::VoxelChunkPropData() { _z = 0; _scale = Vector3(1, 1, 1); _snap_to_mesh = false; + _snap_axis = Vector3(0, -1, 0); } VoxelChunkPropData::~VoxelChunkPropData() { _mesh.unref();