Cleanup: trailing space
[blender-addons.git] / add_camera_rigs / prefs.py
blob465c42a669389ea0e309f704448c8c326ba8f92b
1 # ##### BEGIN GPL LICENSE BLOCK #####
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # ##### END GPL LICENSE BLOCK #####
19 from bpy.types import AddonPreferences
20 from bpy.props import StringProperty
23 class AddCameraRigsPreferences(AddonPreferences):
24 bl_idname = 'add_camera_rigs'
26 # Widget prefix
27 widget_prefix: StringProperty(
28 name="Camera Widget prefix",
29 description="Prefix for the widget objects",
30 default="WGT-",
33 # Collection name
34 camera_widget_collection_name: StringProperty(
35 name="Bone Widget collection name",
36 description="Name for the collection the widgets will appear",
37 default="Widgets",
40 def draw(self, context):
41 layout = self.layout
43 row = layout.row()
44 col = row.column()
45 col.prop(self, "widget_prefix", text="Widget Prefix")
46 col.prop(self, "camera_widget_collection_name", text="Collection name")
49 classes = (
50 AddCameraRigsPreferences,
54 def register():
55 from bpy.utils import register_class
56 for cls in classes:
57 register_class(cls)
60 def unregister():
61 from bpy.utils import unregister_class
62 for cls in classes:
63 unregister_class(cls)