Merge branch 'milek-dev' into gfx-work

This commit is contained in:
milek7
2019-03-16 02:28:36 +01:00
35 changed files with 2358 additions and 1764 deletions

View File

@@ -46,10 +46,12 @@ bounding_area::serialize( std::ostream &Output ) const {
// restores content of the struct from provided input stream
void
bounding_area::deserialize( std::istream &Input ) {
bounding_area::deserialize( std::istream &Input, bool const Preserveradius ) {
center = sn_utils::d_dvec3( Input );
radius = std::max(radius, sn_utils::ld_float32( Input ));
radius = ( Preserveradius ?
std::max( radius, sn_utils::ld_float32( Input ) ) :
sn_utils::ld_float32( Input ) );
}