From 314a219186434b2d170ff1c51c02b276a5b1130e Mon Sep 17 00:00:00 2001 From: yannk Date: Tue, 21 Mar 2023 21:54:53 +0100 Subject: [PATCH] style: fixing tabs instead of 4 spaces indent --- addon/icons/__init__.py | 24 ++++++++++++------------ addon/menus/__init__.py | 14 +++++++------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/addon/icons/__init__.py b/addon/icons/__init__.py index 18222aa..981d0be 100644 --- a/addon/icons/__init__.py +++ b/addon/icons/__init__.py @@ -5,25 +5,25 @@ icons_collection = None icons_directory = os.path.dirname(__file__) def initialize_icons_collection(): - import bpy.utils.previews - global icons_collection - print("icons_collection : {}".format(icons_collection)) - icons_collection = bpy.utils.previews.new() + import bpy.utils.previews + global icons_collection + print("icons_collection : {}".format(icons_collection)) + icons_collection = bpy.utils.previews.new() def unload_icons(): - bpy.utils.previews.remove(icons_collection) + bpy.utils.previews.remove(icons_collection) def get_icon_id(identifier): - # The initialize_icons_collection function needs to be called first. - return get_icon(identifier).icon_id + # The initialize_icons_collection function needs to be called first. + return get_icon(identifier).icon_id def get_icon(identifier): - if identifier in icons_collection: - return icons_collection[identifier] - return icons_collection.load(identifier, os.path.join(icons_directory, identifier + ".png"), "IMAGE") + if identifier in icons_collection: + return icons_collection[identifier] + return icons_collection.load(identifier, os.path.join(icons_directory, identifier + ".png"), "IMAGE") def register_icons(): - initialize_icons_collection() + initialize_icons_collection() def unregister_icons(): - unload_icons() \ No newline at end of file + unload_icons() \ No newline at end of file diff --git a/addon/menus/__init__.py b/addon/menus/__init__.py index 700b418..8d21040 100644 --- a/addon/menus/__init__.py +++ b/addon/menus/__init__.py @@ -3,16 +3,16 @@ import bpy from .panel_main import KH_PT_panel_main classes = ( - KH_PT_panel_main, + KH_PT_panel_main, ) def register_menus(): - from bpy.utils import register_class - for cls in classes: - register_class(cls) + from bpy.utils import register_class + for cls in classes: + register_class(cls) def unregister_menus(): - from bpy.utils import unregister_class - for cls in classes: - unregister_class(cls) \ No newline at end of file + from bpy.utils import unregister_class + for cls in classes: + unregister_class(cls) \ No newline at end of file