[Bf-extensions-cvs] [5dbf034] master: Spacebar Menu: Minor cleanup
lijenstina
noreply at git.blender.org
Wed Nov 16 02:01:14 CET 2016
Commit: 5dbf0341e59b7fec6060e9ebce9c5f33a3e11c4b
Author: lijenstina
Date: Wed Nov 16 02:00:11 2016 +0100
Branches: master
https://developer.blender.org/rBA5dbf0341e59b7fec6060e9ebce9c5f33a3e11c4b
Spacebar Menu: Minor cleanup
Some newline backslashes got stripped
Simplify UseBrushesLists return
===================================================================
M space_view3d_spacebar_menu.py
===================================================================
diff --git a/space_view3d_spacebar_menu.py b/space_view3d_spacebar_menu.py
index f09a4cd..2f8c27f 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")
)
More information about the Bf-extensions-cvs
mailing list