Blender Git Commit Log

Git Commits -> Revision e3a1d04

Revision e3a1d04 by Joshua Leung (master)
December 17, 2009, 10:47 (GMT)
RNA/UI - Reset Settings to Default Values

Added a new operator for properties which resets RNA-based settings to their 'default' values, as defined in RNA. This currently only works for floats, ints, enums, and booleans (strings and pointers still need to be implemented).

The current extensions to the RNA API that I've made here seem a bit excessive, and can be toned down if necessary. In short, I've just added accessor functions for the default-values of the property definitions.

For this to be really useful, many properties in RNA will need to get defaults defined, since the current defaults for quite a few properties tested were less than ideal.

Commit Details:

Full Hash: e3a1d044d68000a2e81b662c0cf15bbe17698aa4
SVN Revision: 25432
Parent Commit: 6c006b2
Lines Changed: +380, -51

1 Added Path:

/source/blender/editors/interface/interface_ops.c (+234, -0) (View)

7 Modified Paths:

/source/blender/editors/animation/anim_intern.h (+0, -2) (Diff)
/source/blender/editors/animation/anim_ops.c (+0, -2) (Diff)
/source/blender/editors/animation/drivers.c (+0, -43) (Diff)
/source/blender/editors/include/UI_interface.h (+3, -0) (Diff)
/source/blender/editors/interface/interface_handlers.c (+7, -2) (Diff)
/source/blender/makesrna/intern/rna_access.c (+124, -1) (Diff)
/source/blender/makesrna/RNA_access.h (+12, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021