VOXCONVERT: check return value of merge
parent
982e9083d6
commit
788f452f41
|
@ -73,6 +73,10 @@ core::AppState VoxConvert::onInit() {
|
|||
|
||||
if (hasArg("--merge")) {
|
||||
voxel::RawVolume* merged = volumes.merge();
|
||||
if (merged == nullptr) {
|
||||
Log::error("Failed to merge volumes");
|
||||
return core::AppState::InitFailure;
|
||||
}
|
||||
voxelformat::clearVolumes(volumes);
|
||||
volumes.push_back(voxel::VoxelVolume(merged));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue