Spacebar Menu: Minor cleanup

Some newline backslashes got stripped
Simplify UseBrushesLists return
This commit is contained in:
Vuk Gardašević 2016-11-16 02:00:11 +01:00
parent 3b9cbaa44e
commit 5dbf0341e5
1 changed files with 7 additions and 6 deletions

View File

@ -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")
)