Skip to content

Commit

Permalink
avoid throwing error for unspecified tfn range
Browse files Browse the repository at this point in the history
  • Loading branch information
Qi Wu committed Apr 7, 2024
1 parent 8e42aca commit 6a6787d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ovr/serializer/serializer_vidi3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ create_scene_tfn(const json& jsview, ValueType type)

else {
/* calculate the volume value range ... */
throw std::runtime_error("unknown data range");
// throw std::runtime_error("unknown data range");
ret.value_range.x = std::numeric_limits<float>::max();
ret.value_range.y = -std::numeric_limits<float>::max();
}

return ret;
Expand Down

0 comments on commit 6a6787d

Please sign in to comment.