Blender Git Commit Log

Git Commits -> Revision 60cbdb0

Revision 60cbdb0 by Julian Eisel (master)
November 23, 2017, 12:58 (GMT)
Support tagging operator properties as 'advanced'

This will later be used to show advanced operator properties separate from
basic (as in non-advanced) ones in the UI.

Tagging a single operator property in C should be done via
`WM_operatortype_prop_tag()`. It does additional checks for type safety
that `RNA_def_property_tags()` doesn't do.

To avoid having to tag each advanced property individually, multiple
ones can be tagged by wrapping them into
`WM_operatortype_props_advanced_bein()` and
`WM_operatortype_props_advanced_end()` calls. It's also possible to only
call `_begin()`, all properties added after this will get tagged then.
In most cases this last approach should be sufficient.

Example of Python usage:
`my_float = bpy.props.FloatProperty(name="Some Float", tags={'ADVANCED'})`

Commit Details:

Full Hash: 60cbdb01527e08f9036eb3d577da1c44a9ce30c7
Parent Commit: 23d148e
Lines Changed: +99, -0

7 Modified Paths:

/source/blender/makesrna/intern/rna_access.c (+17, -0) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+7, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/makesrna/RNA_enum_types.h (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+59, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+8, -0) (Diff)
/source/blender/windowmanager/WM_types.h (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021