diff options
author | lijenstina <lijenstina@gmail.com> | 2016-11-16 04:00:11 +0300 |
---|---|---|
committer | lijenstina <lijenstina@gmail.com> | 2016-11-16 04:00:11 +0300 |
commit | 5dbf0341e59b7fec6060e9ebce9c5f33a3e11c4b (patch) | |
tree | 31b384df6114c6c789b69168fd2a1f9214fcc8e0 /space_view3d_spacebar_menu.py | |
parent | 3b9cbaa44efb03e768219edb2d0427d478233691 (diff) |
Spacebar Menu: Minor cleanup
Some newline backslashes got stripped
Simplify UseBrushesLists return
Diffstat (limited to 'space_view3d_spacebar_menu.py')
-rw-r--r-- | space_view3d_spacebar_menu.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/space_view3d_spacebar_menu.py b/space_view3d_spacebar_menu.py index f09a4cdc..2f8c27f7 100644 --- a/space_view3d_spacebar_menu.py +++ b/space_view3d_spacebar_menu.py @@ -1003,6 +1003,7 @@ class InteractiveModeArmature(Menu): if context.gpencil_data: layout.operator("view3d.interactive_mode_grease_pencil", icon="GREASEPENCIL") + # ********** Interactive Mode Other ********** class InteractiveModeOther(Menu): bl_idname = "VIEW3D_MT_Object_Interactive_Other" @@ -1016,6 +1017,7 @@ class InteractiveModeOther(Menu): if context.gpencil_data: layout.operator("view3d.interactive_mode_grease_pencil", icon="GREASEPENCIL") + # ********** Grease Pencil Interactive Mode ********** class VIEW3D_OT_Interactive_Mode_Grease_Pencil(Operator): bl_idname = "view3d.interactive_mode_grease_pencil" @@ -2827,7 +2829,7 @@ class SetOriginToSelected(Operator): class SnapCursSelToCenter(Operator): bl_idname = "view3d.snap_cursor_selected_to_center" bl_label = "Snap Cursor & Selection to Center" - bl_description = ("Snap 3D cursor and selected objects to the center n" + bl_description = ("Snap 3D cursor and selected objects to the center \n" "Works only in Object Mode") @classmethod @@ -2854,9 +2856,8 @@ def UseBrushesLists(): # pass the prefrences use_brushes_lists bool to enable/disable them # separate function just for more convience useLists = bpy.context.user_preferences.addons[__name__].preferences.use_brushes_lists - if useLists: - return True - return False + + return bool(useLists) # Addon Preferences # @@ -2866,14 +2867,14 @@ class VIEW3D_MT_Space_Dynamic_Menu_Pref(bpy.types.AddonPreferences): use_separators = bpy.props.BoolProperty( name="Use Separators in the menus", default=True, - description=("Use separators in the menus, a trade-off between n" + description=("Use separators in the menus, a trade-off between \n" "readability vs. using more space for displaying items") ) use_brushes_lists = bpy.props.BoolProperty( name="Use compact menus for brushes", default=False, - description=("Use more compact menus instead n" + description=("Use more compact menus instead \n" "of thumbnails for displaying brushes") ) |