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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-10-30 08:24:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-10-30 08:24:33 +0300
commit20db1e1d436f445066491e0cee389646108a401b (patch)
tree0ea548b3043434ac46b83c6d46e911bb39b98264
parent296002e6a3caa54aa9b8cd0b60223a91a0d68983 (diff)
Update for 'header_text_set' change in 2.8
-rw-r--r--archipack/archipack_manipulator.py2
-rw-r--r--mesh_carver.py2
-rw-r--r--mesh_extra_tools/mesh_fastloop.py2
-rw-r--r--mesh_extra_tools/mesh_offset_edges.py4
-rw-r--r--mesh_snap_utilities_line/ops_line.py2
-rw-r--r--oscurart_tools/oscurart_meshes.py2
6 files changed, 7 insertions, 7 deletions
diff --git a/archipack/archipack_manipulator.py b/archipack/archipack_manipulator.py
index 4e916240..5ed7312b 100644
--- a/archipack/archipack_manipulator.py
+++ b/archipack/archipack_manipulator.py
@@ -445,7 +445,7 @@ class Manipulator():
ret = False
self.keyboard_cancel(context, event)
pass
- context.area.header_text_set("")
+ context.area.header_text_set(None)
self.keyboard_input_active = False
self.feedback.disable()
return ret
diff --git a/mesh_carver.py b/mesh_carver.py
index 5fd18492..cf720fdb 100644
--- a/mesh_carver.py
+++ b/mesh_carver.py
@@ -2884,7 +2884,7 @@ class Carver(bpy.types.Operator):
traceback.print_exc()
context.window.cursor_modal_set("DEFAULT")
- context.area.header_text_set("")
+ context.area.header_text_set(None)
bpy.types.SpaceView3D.draw_handler_remove(self._handle, 'WINDOW')
self.report({'WARNING'},
diff --git a/mesh_extra_tools/mesh_fastloop.py b/mesh_extra_tools/mesh_fastloop.py
index 61e9b0d2..0bfcc405 100644
--- a/mesh_extra_tools/mesh_fastloop.py
+++ b/mesh_extra_tools/mesh_fastloop.py
@@ -79,7 +79,7 @@ class OBJECT_OT_FastLoop(Operator):
def modal(self, context, event):
if event.type == 'ESC':
- context.area.header_text_set("")
+ context.area.header_text_set(None)
return {'CANCELLED'}
elif event.type == 'LEFTMOUSE' and event.value == 'RELEASE':
diff --git a/mesh_extra_tools/mesh_offset_edges.py b/mesh_extra_tools/mesh_offset_edges.py
index 19eccd3b..e92c5430 100644
--- a/mesh_extra_tools/mesh_offset_edges.py
+++ b/mesh_extra_tools/mesh_offset_edges.py
@@ -786,7 +786,7 @@ class OffsetEdges(Operator):
def restore_original_and_free(self, context):
self.caches_valid = False # Make caches invalid
- context.area.header_text_set("")
+ context.area.header_text_set(None)
me = context.edit_object.data
bpy.ops.object.mode_set(mode="OBJECT")
@@ -794,7 +794,7 @@ class OffsetEdges(Operator):
bpy.ops.object.mode_set(mode="EDIT")
self._bm_orig.free()
- context.area.header_text_set("")
+ context.area.header_text_set(None)
def invoke(self, context, event):
# In edit mode
diff --git a/mesh_snap_utilities_line/ops_line.py b/mesh_snap_utilities_line/ops_line.py
index f8375607..57ed3f19 100644
--- a/mesh_snap_utilities_line/ops_line.py
+++ b/mesh_snap_utilities_line/ops_line.py
@@ -393,7 +393,7 @@ class SnapUtilitiesLine(bpy.types.Operator):
bpy.types.SpaceView3D.draw_handler_remove(self._handle, 'WINDOW')
Bpy_Area_header_text_clear(context.area)
- #context.area.header_text_set(text = "")
+ # context.area.header_text_set(text=None)
self.sctx.free()
del self.draw_cache
diff --git a/oscurart_tools/oscurart_meshes.py b/oscurart_tools/oscurart_meshes.py
index 61c6fa54..a601aa53 100644
--- a/oscurart_tools/oscurart_meshes.py
+++ b/oscurart_tools/oscurart_meshes.py
@@ -449,7 +449,7 @@ class ModalIndexOperator(Operator):
self.tsize -= 1
elif event.type in {'RIGHTMOUSE', 'ESC', 'TAB'}:
bpy.types.SpaceView3D.draw_handler_remove(self._handle, 'WINDOW')
- context.area.header_text_set("")
+ context.area.header_text_set(None)
return {'CANCELLED'}
return {'PASS_THROUGH'}