diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-02-12 06:39:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-02-12 06:39:56 +0300 |
commit | b96180ec1763b29bdda4acd6cf79275058bcbde3 (patch) | |
tree | 74782072278e53659f1b1c3e66eaaed6d11e9ced /source/blender/makesdna | |
parent | 12811a096c8ec23477bdc29a02d5d9492d13e94d (diff) |
* Added description string to operator types, should be set along with ot->idname when defining ops.
* User interface uses this as a tooltip when NULL or "" is given.
* Python doc generation includes this description
* Python defined ops take the description as an argument.
* NULL check to image_ops.c, was crashing on exit when there was an image open.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_windowmanager_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h index 822f081f9a8..e0f55ac5356 100644 --- a/source/blender/makesdna/DNA_windowmanager_types.h +++ b/source/blender/makesdna/DNA_windowmanager_types.h @@ -123,7 +123,8 @@ typedef struct wmOperatorType { struct wmOperatorType *next, *prev; char *name; /* text for ui, undo */ - char *idname; /* unique identifier */ + char *idname; /* unique identifier */ + char *description; /* tooltips and python docs */ /* this callback executes the operator without any interactive input, * parameters may be provided through operator properties. cannot use |