Blender Git Commit Log

Git Commits -> Revision caf58fe

Revision caf58fe by Willian Padovani Germano (master)
December 9, 2008, 00:18 (GMT)
== Python Space Handlers ==

- Old feature request: now space handlers can report release events, too. For that a new space handler type was added, here's the header for it:

# SPACEHANDLER.VIEW3D.EVENT.ALL

These scripts report both "presses and releases". For release events, Blender.eventValue is zero and Blender.link == Blender.SpaceHandlers.VIEW3D_EVENT_RELEASE. Check the API_related bpy doc for more info.

- Bug fix: left mouse clicks could be reported twice.

Important: for both the feature and the fix, to make the code nicer and to let space handlers become available in more situations, I moved the check for space handlers in space.c. Now it happens before checks for grease pencil, sculpt and left/right mouse button swapping. If this causes any problem (it shouldn't), please report.

PS: Thanks to Steven Truppe, who asked for this and even sent me a patch, but to preserve compatibility with existing event space handler scripts I did things in a different way.

Commit Details:

Full Hash: caf58fe4b293d78a0625e3e64032ff3b9b8278c5
SVN Revision: 17750
Parent Commit: 2746034
Lines Changed: +73, -38

6 Modified Paths:

/source/blender/makesdna/DNA_scriptlink_types.h (+5, -3) (Diff)
/source/blender/python/api2_2x/Blender.c (+4, -1) (Diff)
/source/blender/python/api2_2x/doc/API_related.py (+16, -7) (Diff)
/source/blender/python/BPY_interface.c (+26, -18) (Diff)
/source/blender/src/header_view3d.c (+2, -0) (Diff)
/source/blender/src/space.c (+20, -9) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021