fix a typo

This commit is contained in:
Andrej730
2025-02-03 11:45:37 +05:00
parent b56f2d7514
commit 305b4c27b5
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ def edit_style(ifc: tool.Ifc, style: tool.Style) -> None:
style.disable_editing()
load_styles(style, style.get_active_style_type())
if is_style_side_attribute_edited:
style.reload_repersentations(style_element)
style.reload_representations(style_element)
def load_styles(style: tool.Style, style_type: str) -> None:
+1 -1
View File
@@ -1026,7 +1026,7 @@ class Style:
def is_editing_styles(cls): pass
def reload_material_from_ifc(cls, obj): pass
def is_style_side_attribute_edited(cls, style, new_attributes): pass
def reload_repersentations(cls, style): pass
def reload_representations(cls, style): pass
@interface
+1 -1
View File
@@ -679,7 +679,7 @@ class Style(bonsai.core.tool.Style):
return old_value != new_value and "NEGATIVE" in (old_value, new_value)
@classmethod
def reload_repersentations(cls, style: ifcopenshell.entity_instance) -> None:
def reload_representations(cls, style: ifcopenshell.entity_instance) -> None:
elements = ifcopenshell.util.element.get_elements_by_style(tool.Ifc.get(), style)
objects = [tool.Ifc.get_object(e) for e in elements]
tool.Geometry.reload_representation(objects)
+1 -1
View File
@@ -208,7 +208,7 @@ class TestEditStyle:
style.import_presentation_styles("style_type").should_be_called()
style.enable_editing_styles().should_be_called()
style.reload_repersentations("style_element").should_be_called()
style.reload_representations("style_element").should_be_called()
subject.edit_style(ifc, style)