commit 03d5d1d6f1920cabbbd533e3a12df1b79a061c02
parent 44411bd98ca7faf0a3c3bce0040a7b47884ac745
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 26 Oct 2022 12:21:01 +0200
htrdr-planeto: fix bad argument for octree storage
We had defined that octrees could be loaded from storage if it was empty
when it is exactly the opposite
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/planeto/htrdr_planeto.c b/src/planeto/htrdr_planeto.c
@@ -67,7 +67,7 @@ setup_octree_storage
err = stat(args->octrees_storage, &file_stat);
if(err < 0) { res = RES_IO_ERR; goto error; }
- if(file_stat.st_size == 0) {
+ if(file_stat.st_size != 0) {
/* The file is not empty and therefore must contain valid octrees */
rnatm_args->load_octrees_from_storage = 1;
}