[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [531] contrib/py/scripts/addons/ space_view3d_dynamic_menu.py: Changed toggle edit mode around some.
Jonathan Smith
j.jaydez at gmail.com
Wed Mar 31 10:20:47 CEST 2010
Revision: 531
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=531
Author: jaydez
Date: 2010-03-31 10:20:42 +0200 (Wed, 31 Mar 2010)
Log Message:
-----------
Changed toggle edit mode around some. Added different icons and names depending which mode you are in.
Modified Paths:
--------------
contrib/py/scripts/addons/space_view3d_dynamic_menu.py
Modified: contrib/py/scripts/addons/space_view3d_dynamic_menu.py
===================================================================
--- contrib/py/scripts/addons/space_view3d_dynamic_menu.py 2010-03-31 08:11:23 UTC (rev 530)
+++ contrib/py/scripts/addons/space_view3d_dynamic_menu.py 2010-03-31 08:20:42 UTC (rev 531)
@@ -52,6 +52,10 @@
* Choose your function from the menu.
Version history:
+v1.3 - (JayDez) - Changed toggle editmode to an if statement, so that
+ if you are in editmode it will show change to object mode but
+ otherwise it shows change to edit mode. Also added seperate icons
+ for change to edit mode and to object mode.
v1.2 - (JayDez) - Editing docs, changing 3d cursor to dynamic menu,
reorganizing menu.
v1.1 - (meta-androcto) - added editmode menu
@@ -153,7 +157,10 @@
layout.menu("VIEW3D_MT_curs", icon= 'CURSOR')
layout.separator()
#toggle Editmode
- layout.operator("object.editmode_toggle", text="Enter Edit Mode", icon='EDITMODE_HLT'))
+ if ob.mode != 'EDIT_MESH':
+ layout.operator("object.editmode_toggle", text="Enter Edit Mode", icon='EDITMODE_HLT')
+ else:
+ layout.operator("object.editmode_toggle", text="Enter Object Mode", icon = 'OBJECT_DATAMODE')
class VIEW3D_MT_selectS(bpy.types.Menu):
bl_label = "Selections"
More information about the Bf-extensions-cvs
mailing list