mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 10:59:17 +00:00
fix a typo
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user