diff --git a/__init__.py b/__init__.py index ed4e869..15df191 100644 --- a/__init__.py +++ b/__init__.py @@ -10,11 +10,12 @@ bl_info = { } -from . import ui, operators +from . import ui, operators, preferences modules = ( ui, operators, + preferences ) diff --git a/preferences.py b/preferences.py new file mode 100644 index 0000000..ac959fe --- /dev/null +++ b/preferences.py @@ -0,0 +1,22 @@ +import bpy +from bpy.types import AddonPreferences +from bpy.props import BoolProperty + + +class NodeKitPreferences(AddonPreferences): + bl_idname = __package__ + +classes = ( + NodeKitPreferences, +) + + +def register(): + for c in classes: + bpy.utils.register_class(c) + + +def unregister(): + for c in reversed(classes): + bpy.utils.unregister_class(c) +