Fix #961. Reloading is now more robust, and detects opening and projection changes to geometry

This commit is contained in:
Dion Moult
2020-09-01 12:18:48 +10:00
parent f1269c7618
commit 55a54098dd
2 changed files with 18 additions and 14 deletions
+8
View File
@@ -134,6 +134,14 @@ class IfcDiff():
skip_after_n=1000, # Arbitrary value to "skim" check
significant_digits=self.precision, ignore_string_type_changes=True, ignore_numeric_type_changes=True,
exclude_regex_paths=r'root.*id$')
DeepDiff(old_element.HasOpenings, new_element.HasOpenings,
terminate_on_first=True,
significant_digits=self.precision, ignore_string_type_changes=True, ignore_numeric_type_changes=True,
exclude_regex_paths=r'root.*id$')
DeepDiff(old_element.HasProjections, new_element.HasProjections,
terminate_on_first=True,
significant_digits=self.precision, ignore_string_type_changes=True, ignore_numeric_type_changes=True,
exclude_regex_paths=r'root.*id$')
except:
if new_element.GlobalId:
return self.change_register.setdefault(new_element.GlobalId, {}).update({'has_geometry_change': True})