From 5e849d7b81e0568c6e75e33a1a0883f6ddf8ee5c Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 29 Jul 2024 14:33:26 +0500 Subject: [PATCH] update core.tool.Material to fix tests --- src/blenderbim/blenderbim/core/tool.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/blenderbim/blenderbim/core/tool.py b/src/blenderbim/blenderbim/core/tool.py index e80ec31f0d..97e9066532 100644 --- a/src/blenderbim/blenderbim/core/tool.py +++ b/src/blenderbim/blenderbim/core/tool.py @@ -496,23 +496,30 @@ class Material: def add_material_to_set(cls, material_set, material): pass def disable_editing_material(cls): pass def disable_editing_materials(cls): pass + def duplicate_material(cls, material): pass def enable_editing_material(cls, material): pass def enable_editing_materials(cls): pass - def get_active_material(cls): pass + def ensure_material_assigned(cls, elements, material_type, material): pass + def ensure_material_unassigned(cls, elements): pass + def get_active_material_item(cls): pass def get_active_material_type(cls): pass - def get_active_object_material_type(cls, obj): pass + def get_default_material(cls): pass def get_elements_by_material(cls, material): pass - def get_material(cls, element, should_inherit): pass def get_material_attributes(cls): pass + def get_material(cls, element, should_inherit: bool = False): pass + def get_object_ui_active_material(cls): pass + def get_object_ui_material_type(cls): pass + def get_style(cls, material): pass def get_type(cls, element): pass def has_material_profile(cls, element): pass - def import_material_definitions(cls, material_type): pass + def import_material_definitions(cls, material_type: str): pass def is_a_flow_segment(cls, element): pass def is_a_material_set(cls, material): pass def is_editing_materials(cls): pass def is_material_used_in_sets(cls, material): pass def load_material_attributes(cls, material): pass def replace_material_with_material_profile(cls, element): pass + def update_elements_using_material(cls, material): pass @interface