mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-12 10:15:12 +01:00
Better snap axis defaults.
This commit is contained in:
parent
3f7b422662
commit
f23f3122a4
@ -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();
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user