From 71c4b2432651bcffe810f90a39b56a17320e292a Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Sun, 1 May 2022 21:27:48 +0200 Subject: [PATCH] VOXCONVERT: changed default value for --image-as-volume-both-sides --- src/modules/voxelutil/ImageUtils.h | 2 +- src/tools/voxconvert/VoxConvert.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/voxelutil/ImageUtils.h b/src/modules/voxelutil/ImageUtils.h index 75155bcf4..f6ee7adb9 100644 --- a/src/modules/voxelutil/ImageUtils.h +++ b/src/modules/voxelutil/ImageUtils.h @@ -11,6 +11,6 @@ namespace voxelutil { extern void importHeightmap(voxel::RawVolumeWrapper& volume, const image::ImagePtr& image, const voxel::Voxel &underground, const voxel::Voxel &surface); extern voxel::RawVolume* importAsPlane(const image::ImagePtr& image, uint8_t thickness = 1); -extern voxel::RawVolume* importAsVolume(const image::ImagePtr& image, uint8_t maxDepth, bool bothSides = true); +extern voxel::RawVolume* importAsVolume(const image::ImagePtr& image, uint8_t maxDepth, bool bothSides = false); } diff --git a/src/tools/voxconvert/VoxConvert.cpp b/src/tools/voxconvert/VoxConvert.cpp index 7715e5c7f..315379a62 100644 --- a/src/tools/voxconvert/VoxConvert.cpp +++ b/src/tools/voxconvert/VoxConvert.cpp @@ -57,7 +57,7 @@ app::AppState VoxConvert::onConstruct() { registerArg("--image-as-plane").setDescription("Import given input images as planes"); registerArg("--image-as-volume").setDescription("Import given input image as volume"); registerArg("--image-as-volume-max-depth").setDefaultValue("8").setDescription("Importing image as volume max depth"); - registerArg("--image-as-volume-both-sides").setDefaultValue("true").setDescription("Importing image as volume for both sides"); + registerArg("--image-as-volume-both-sides").setDefaultValue("false").setDescription("Importing image as volume for both sides"); registerArg("--image-as-heightmap").setDescription("Import given input images as heightmaps"); registerArg("--input").setShort("-i").setDescription("Allow to specify input files"); registerArg("--merge").setShort("-m").setDescription("Merge layers into one volume");