Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-10-04 17:24:48 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-10-04 17:24:48 +0400
commitf618bc5aca23616cf22c0e9350ae3c2ee23acc5f (patch)
tree27289252456406cf1899c9a9efb545542b40fb65 /release
parent215ed84779da71ab8c1c580766f1771617e4828d (diff)
Fix #28202: (only) modifying keymap item properties did not save properly, the
update signal for this was missing. Problem is that the operator properties RNA update callback doesn't know the associated keymap item, worked around it with UI template now.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_userpref_keymap.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref_keymap.py b/release/scripts/startup/bl_ui/space_userpref_keymap.py
index 25f955085f6..c2e3a145f36 100644
--- a/release/scripts/startup/bl_ui/space_userpref_keymap.py
+++ b/release/scripts/startup/bl_ui/space_userpref_keymap.py
@@ -121,19 +121,6 @@ class InputKeyMapPanel:
for entry in children:
self.draw_entry(display_keymaps, entry, col, level + 1)
- @staticmethod
- def draw_kmi_properties(box, properties, title=None):
- box.separator()
- if title:
- box.label(text=title)
- flow = box.column_flow(columns=2)
- for pname, value in properties.bl_rna.properties.items():
- if pname != "rna_type" and not properties.is_property_hidden(pname):
- if isinstance(value, OperatorProperties):
- InputKeyMapPanel.draw_kmi_properties(box, value, title=pname)
- else:
- flow.prop(properties, pname)
-
def draw_kmi(self, display_keymaps, kc, km, kmi, layout, level):
map_type = kmi.map_type
@@ -218,9 +205,7 @@ class InputKeyMapPanel:
subrow.prop(kmi, "key_modifier", text="", event=True)
# Operator properties
- props = kmi.properties
- if props is not None:
- InputKeyMapPanel.draw_kmi_properties(box, props)
+ box.template_keymap_item_properties(kmi)
# Modal key maps attached to this operator
if not km.is_modal: