WM: enable activate on init for wmOperatorType.prop

This enables popups to edit text when displayed,
use for new collection popup.
This commit is contained in:
2019-03-22 00:30:17 +11:00
parent 19dc7f7fdf
commit 9a09246dc0
10 changed files with 37 additions and 13 deletions

View File

@@ -611,8 +611,13 @@ typedef struct wmOperatorType {
/* previous settings - for initializing on re-use */
struct IDProperty *last_properties;
/* Default rna property to use for generic invoke functions.
* menus, enum search... etc. Example: Enum 'type' for a Delete menu */
/**
* Default rna property to use for generic invoke functions.
* menus, enum search... etc. Example: Enum 'type' for a Delete menu.
*
* When assigned a string/number property,
* immediately edit the value when used in a popup. see: #UI_BUT_ACTIVATE_ON_INIT.
*/
PropertyRNA *prop;
/* struct wmOperatorTypeMacro */