File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -768,6 +768,9 @@ namespace {
768
768
// @todo use regions for multi threading
769
769
for (auto & ijk : *(regular_voxel_storage*)voxels) {
770
770
groups->Get (ijk, &v);
771
+ if (v == 0 ) {
772
+ continue ;
773
+ }
771
774
abstract_voxel_storage* r;
772
775
auto it = map.find (v);
773
776
if (it == map.end ()) {
@@ -1494,14 +1497,15 @@ class op_compare : public voxel_operation {
1494
1497
symbol_value invoke (const scope_map& scope) const {
1495
1498
auto * voxels = (regular_voxel_storage*) scope.get_value <abstract_voxel_storage*>(" input" );
1496
1499
auto rhs = (uint32_t )scope.get_value <int >(" rhs" );
1497
-
1498
- auto result = voxels->empty_copy ();
1500
+
1501
+ bit_t fmt;
1502
+ auto result = voxels->empty_copy_as (&fmt);
1499
1503
uint32_t val;
1500
1504
1501
1505
for (auto & pos : *voxels) {
1502
1506
voxels->Get (pos, &val);
1503
1507
if (Pred ()(val, rhs)) {
1504
- result->Set (pos, &val );
1508
+ result->Set (pos);
1505
1509
}
1506
1510
}
1507
1511
You can’t perform that action at this time.
0 commit comments