Skip to content

Commit

Permalink
PALETTE: fixed segfault in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Jan 9, 2025
1 parent e6963e9 commit 035cbe0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/palette/tests/PaletteTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class PaletteTest : public app::AbstractTest {
protected:
bool onInitApp() override {
core::Var::get(cfg::CoreColorReduction, core::Color::toColorReductionTypeString(core::Color::ColorReductionType::Octree));
core::Var::get(cfg::PalformatMaxSize, 512);
return true;
}
};
Expand Down
2 changes: 2 additions & 0 deletions src/modules/voxelcollection/Downloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ bool Downloader::handleArchive(const io::ArchivePtr &archive, const VoxelFile &a
archiveFile.fullPath.c_str());
continue;
}
// TODO: remove this as we might have clashes here with existing files
if (archive->write(subFile.targetFile(), *rs)) {
files.push_back(subFile);
} else {
Expand All @@ -198,6 +199,7 @@ bool Downloader::handleArchive(const io::ArchivePtr &archive, const VoxelFile &a
archiveFile.fullPath.c_str());
continue;
}
// TODO: remove this as we might have clashes here with existing files
if (archive->write(subFile.targetFile(), *rs)) {
handleArchive(archive, subFile, files, shouldQuit);
} else {
Expand Down

0 comments on commit 035cbe0

Please sign in to comment.