# /bin/python # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . #---------------------------------------------------------- # File __init__.py #---------------------------------------------------------- bl_info = { "name" : "Simple Material Flattener", "author" : "Iron", "description" : "", "blender" : (3, 3, 1), "version" : (0, 0, 1), "location" : "View3D > N Panel > Misc.", "warning" : "", "category" : "Material" } if "bpy" in locals(): from importlib import reload reload(operators) reload(panel) else: from . import operators from . import panel import bpy from bpy.types import Scene classes = ( operators.SMF_OT_flatten_materials, panel.SMF_PT_Panel ) def register(): for c in classes: bpy.utils.register_class(c) def unregister(): for c in reversed(classes): bpy.utils.unregister_class(c)