File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class GeometryConverter : public StatusCallback
94
94
{
95
95
m_product_shape_data.clear ();
96
96
m_map_outside_spatial_structure.clear ();
97
- m_representation_converter->clearCache ();
97
+ m_representation_converter->clearCache (false );
98
98
m_messages.clear ();
99
99
}
100
100
@@ -116,7 +116,7 @@ class GeometryConverter : public StatusCallback
116
116
}
117
117
clearInputCache ();
118
118
m_ifc_model = model;
119
- m_representation_converter->clearCache ();
119
+ m_representation_converter->clearCache (false );
120
120
m_representation_converter->setUnitConverter ( m_ifc_model->getUnitConverter () );
121
121
m_ifc_model->setMessageTarget ( this );
122
122
}
@@ -297,7 +297,7 @@ class GeometryConverter : public StatusCallback
297
297
progressValueCallback ( 0 , " geometry" );
298
298
m_product_shape_data.clear ();
299
299
m_map_outside_spatial_structure.clear ();
300
- m_representation_converter->clearCache ();
300
+ m_representation_converter->clearCache (false );
301
301
302
302
if ( !m_ifc_model )
303
303
{
Original file line number Diff line number Diff line change @@ -113,14 +113,17 @@ class RepresentationConverter : public StatusCallback
113
113
114
114
virtual ~RepresentationConverter ()
115
115
{
116
- clearCache ();
116
+ clearCache (false );
117
117
}
118
118
119
- void clearCache ()
119
+ void clearCache ( bool resetUnitFactor )
120
120
{
121
121
m_profile_cache->clearProfileCache ();
122
122
m_styles_converter->clearStylesCache ();
123
- m_unit_converter->resetUnitFactors ();
123
+ if (resetUnitFactor)
124
+ {
125
+ m_unit_converter->resetUnitFactors ();
126
+ }
124
127
}
125
128
shared_ptr<GeometrySettings>& getGeomSettings () { return m_geom_settings; }
126
129
shared_ptr<UnitConverter>& getUnitConverter () { return m_unit_converter; }
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ void UnitConverter::setIfcProject( shared_ptr<IfcProject> project )
118
118
std::vector<shared_ptr<IfcUnit> >& vec_units = unit_assignment->m_Units ;
119
119
for (auto unit : vec_units)
120
120
{
121
- if ( !unit )
121
+ if ( !unit )
122
122
{
123
123
continue ;
124
124
}
You can’t perform that action at this time.
0 commit comments