diff options
Diffstat (limited to 'release/scripts/startup/bl_operators/wm.py')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index da078f925a9..0f2669d4c94 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -707,9 +707,14 @@ class WM_OT_context_modal_mouse(Operator): if event_type == 'MOUSEMOVE': delta = event.mouse_x - self.initial_x self._values_delta(delta) - if self.header_text: - for item, value_orig in self._values.items(): - context.area.header_text_set(self.header_text % eval("item.%s" % self.data_path_item)) + header_text = self.header_text + if header_text: + if len(self._values) == 1: + (item, ) = self._values.keys() + header_text = header_text % eval("item.%s" % self.data_path_item) + else: + header_text = (self.header_text % delta) + " (delta)" + context.area.header_text_set(header_text) elif 'LEFTMOUSE' == event_type: item = next(iter(self._values.keys())) |