Blender Git Commit Log

Git Commits -> Revision 97692a3

Revision 97692a3 by Campbell Barton (master)
January 18, 2009, 10:46 (GMT)
Changes to functions from blender/windowmanager/intern/wm_event_system.c

Python operator api was using WM_operator_name_call() which was confusing things too much.
Added WM_operator_call_py() which ended up being a very small function and split out operator creation into wm_operator_create()

Python operator now runs the poll() function and raises an error if it fails.

Eventually there should be error messages for poll that python can use to give the exact reason for failing (eg - library linked data, no active object...)

Commit Details:

Full Hash: 97692a3bf5a91e83e04c9864e3723f2363006111
SVN Revision: 18560
Parent Commit: 53ae509
Lines Changed: +89, -58

10 Modified Paths:

/source/blender/editors/interface/interface_handlers.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_regions.c (+1, -1) (Diff)
/source/blender/editors/mesh/mesh_ops.c (+1, -1) (Diff)
/source/blender/editors/object/object_edit.c (+1, -1) (Diff)
/source/blender/editors/space_action/action_header.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_header.c (+4, -4) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+10, -10) (Diff)
/source/blender/python/intern/bpy_operator.c (+6, -1) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+61, -36) (Diff)
/source/blender/windowmanager/WM_api.h (+2, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021