diff options
author | Doug Hammond <doughammond@hamsterfight.co.uk> | 2011-03-07 04:34:28 +0300 |
---|---|---|
committer | Doug Hammond <doughammond@hamsterfight.co.uk> | 2011-03-07 04:34:28 +0300 |
commit | 3ff13239dee93ac27729c144950e646b7354c7b2 (patch) | |
tree | ab53853a9e7478cca66a2040ca820a2f6cdb03ee /modules | |
parent | 579bd2c9491ff2317221249944afd81d23a1f71b (diff) |
extensions_framework: added ef_callback pseudo-property type for invoking custom draw methods in property_group_renderer
Diffstat (limited to 'modules')
-rw-r--r-- | modules/extensions_framework/ui.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/extensions_framework/ui.py b/modules/extensions_framework/ui.py index 598839b0..ee29af03 100644 --- a/modules/extensions_framework/ui.py +++ b/modules/extensions_framework/ui.py @@ -289,6 +289,9 @@ class property_group_renderer(bpy.types.Panel): current_property['src_attr'], text = current_property['name'], ) + + elif current_property['type'] in ['ef_callback']: + getattr(self, current_property['method'])(supercontext) else: layout.prop(property_group, control_list_item) |