[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4358] contrib/py/scripts/addons/ space_view3d_enhanced_3d_cursor.py: Enhanced 3D cursor addon: previous commit broke mode checks, restored.
Sebastian Nell
codemanx at gmx.de
Mon Mar 11 17:46:59 CET 2013
Revision: 4358
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4358
Author: codemanx
Date: 2013-03-11 16:46:59 +0000 (Mon, 11 Mar 2013)
Log Message:
-----------
Enhanced 3D cursor addon: previous commit broke mode checks, restored. Thanks Dima for pointing that out!
Modified Paths:
--------------
contrib/py/scripts/addons/space_view3d_enhanced_3d_cursor.py
Modified: contrib/py/scripts/addons/space_view3d_enhanced_3d_cursor.py
===================================================================
--- contrib/py/scripts/addons/space_view3d_enhanced_3d_cursor.py 2013-03-11 16:07:43 UTC (rev 4357)
+++ contrib/py/scripts/addons/space_view3d_enhanced_3d_cursor.py 2013-03-11 16:46:59 UTC (rev 4358)
@@ -21,7 +21,7 @@
"name": "Enhanced 3D Cursor",
"description": "Cursor history and bookmarks; drag/snap cursor.",
"author": "dairin0d",
- "version": (2, 8, 8),
+ "version": (2, 8, 9),
"blender": (2, 65, 4),
"location": "View3D > Action mouse; F10; Properties panel",
"warning": "",
@@ -249,8 +249,8 @@
bpy.ops.view3d.cursor3d_monitor()
# Don't interfere with these modes when only mouse is pressed
- if context.mode in ('SCULPT', 'PAINT'):
- if event.type == "MOUSE":
+ if ('PAINT' or 'SCULPT') in context.mode:
+ if "MOUSE" in event.type:
return {'CANCELLED'}
CursorDynamicSettings.active_transform_operator = self
@@ -550,7 +550,8 @@
tool_settings.snap_element = snap_element
# end if
- if initial_run or event.type not in ('MOVE', 'TIMER'):
+ if initial_run or event.type not in ('MOUSEMOVE',
+ 'INBETWEEN_MOUSEMOVE', 'TIMER'):
use_snap = (tool_settings.use_snap != event.ctrl)
if use_snap:
snap_type = tool_settings.snap_element
@@ -5103,7 +5104,7 @@
update_stick_to_obj(context)
- if context.mode != 'EDIT':
+ if "EDIT" not in context.mode:
# It's nice to have bookmark position update interactively
# However, this still can be slow if there are many
# selected objects
More information about the Bf-extensions-cvs
mailing list