RNA: Area.header_text_set text is now required

This commit is contained in:
2018-09-08 06:23:25 +10:00
parent 9c7195789d
commit f23319d095
4 changed files with 9 additions and 7 deletions

View File

@@ -29,12 +29,12 @@ class ViewOperator(bpy.types.Operator):
context.area.header_text_set("Offset %.4f %.4f %.4f" % tuple(self.offset))
elif event.type == 'LEFTMOUSE':
context.area.header_text_set()
context.area.header_text_set("")
return {'FINISHED'}
elif event.type in {'RIGHTMOUSE', 'ESC'}:
rv3d.view_location = self._initial_location
context.area.header_text_set()
context.area.header_text_set("")
return {'CANCELLED'}
return {'RUNNING_MODAL'}