From ae5a814f26e78dd65557773b5c00c341cdca1947 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 18 Nov 2009 20:01:35 +0000 Subject: 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 --- source/blender/blenkernel/intern/idprop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/idprop.c') diff --git a/source/blender/blenkernel/intern/idprop.c b/source/blender/blenkernel/intern/idprop.c index 3cff82f522a..7e081982f24 100644 --- a/source/blender/blenkernel/intern/idprop.c +++ b/source/blender/blenkernel/intern/idprop.c @@ -442,7 +442,7 @@ void IDP_RemFromGroup(IDProperty *group, IDProperty *prop) BLI_remlink(&group->data.group, prop); } -IDProperty *IDP_GetPropertyFromGroup(IDProperty *prop, char *name) +IDProperty *IDP_GetPropertyFromGroup(IDProperty *prop, const char *name) { IDProperty *loop; for (loop=prop->data.group.first; loop; loop=loop->next) { -- cgit v1.2.3