diff options
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index 7fdbf79248b..b3507c7e57e 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -737,6 +737,12 @@ typedef struct wmOperatorType { */ const char *(*get_name)(struct wmOperatorType *, struct PointerRNA *); + /** + * Return a different description to use in the user interface, based on property values. + * The returned string must be freed by the caller, unless NULL. + */ + char *(*get_description)(struct bContext *C, struct wmOperatorType *, struct PointerRNA *); + /** rna for properties */ struct StructRNA *srna; |