Blender Git Commit Log

Git Commits -> Revision ae5a814

Revision ae5a814 by Campbell Barton (master)
November 18, 2009, 20:01 (GMT)
ID properties that are displayed via RNA can now define their own UI settings,
only implimented min/max precision & step.

at the moment there is no way to edit these other then via python

example of setting UI limits...

>>> C.object['foo'] = 0.5
>>> C.object['_RNA_UI'] = {'foo': {'step': 0.5, 'soft_max': 10.0, 'soft_min': 0.0, 'precision': 2, 'description': 'Some setting'}}

Also fixed typo's: precission -> precision

Commit Details:

Full Hash: ae5a814f26e78dd65557773b5c00c341cdca1947
SVN Revision: 24659
Parent Commit: 5f6b9fd
Lines Changed: +175, -29

12 Modified Paths:

/release/scripts/modules/rna_prop_ui.py (+25, -15) (Diff)
/release/scripts/ui/properties_object.py (+1, -1) (Diff)
/release/scripts/ui/space_view3d.py (+25, -0) (Diff)
/source/blender/blenkernel/BKE_idprop.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/idprop.c (+1, -1) (Diff)
/source/blender/editors/interface/interface.c (+4, -4) (Diff)
/source/blender/editors/space_sequencer/sequencer_draw.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+1, -1) (Diff)
/source/blender/imbuf/intern/jp2.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_access.c (+106, -1) (Diff)
/source/blender/makesrna/intern/rna_internal_types.h (+4, -0) (Diff)
/source/blender/python/intern/bpy_rna.c (+5, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021