Commit 8d095678 authored by Campbell Barton's avatar Campbell Barton

Update for changes in 2.8x API

parent ecc140b2
......@@ -1315,7 +1315,7 @@ class drawPoly(bpy.types.Operator):
# reset header gui
context.area.tag_redraw()
context.area.header_text_set()
context.area.header_text_set("")
# Convert to Quads
bpy.ops.mesh.quads_convert_to_tris(quad_method='BEAUTY', ngon_method='BEAUTY')
......@@ -1344,7 +1344,7 @@ class drawPoly(bpy.types.Operator):
# reset header gui
context.area.tag_redraw()
context.area.header_text_set()
context.area.header_text_set("")
# restore selection mode and manipulator
......
......@@ -137,7 +137,7 @@ def widget_iter_template(context, mpr, ob, fmap, fmap_target):
if USE_VERBOSE:
print("(iter-exit)", event)
context.area.header_text_set()
context.area.header_text_set("")
def widget_iter_pose_translate(context, mpr, ob, fmap, fmap_target):
......@@ -213,7 +213,7 @@ def widget_iter_pose_translate(context, mpr, ob, fmap, fmap_target):
else:
pose_bone_autokey(pose_bone, tweak_attr, tweak_attr_lock)
context.area.header_text_set()
context.area.header_text_set("")
def widget_iter_pose_rotate(context, mpr, ob, fmap, fmap_target):
......@@ -323,7 +323,7 @@ def widget_iter_pose_rotate(context, mpr, ob, fmap, fmap_target):
else:
pose_bone_autokey(pose_bone, tweak_attr, tweak_attr_lock)
context.area.header_text_set()
context.area.header_text_set("")
def widget_iter_pose_scale(context, mpr, ob, fmap, fmap_target):
......@@ -387,7 +387,7 @@ def widget_iter_pose_scale(context, mpr, ob, fmap, fmap_target):
else:
pose_bone_autokey(pose_bone, tweak_attr, tweak_attr_lock)
context.area.header_text_set()
context.area.header_text_set("")
def widget_iter_shapekey(context, mpr, ob, fmap, fmap_target):
......@@ -448,7 +448,7 @@ def widget_iter_shapekey(context, mpr, ob, fmap, fmap_target):
else:
shape.id_data.keyframe_insert(shape.path_from_id() + ".value")
context.area.header_text_set()
context.area.header_text_set("")
# -------------------------
......
......@@ -215,7 +215,7 @@ class ViewOperatorRayCast(bpy.types.Operator):
if event.value == 'RELEASE':
if self.pick_objects: # avoid enter taking effect on startup
pick_finalize(context, self.pick_objects)
context.area.header_text_set()
context.area.header_text_set("")
self.report({'INFO'}, "Finished")
return {'FINISHED'}
......@@ -223,7 +223,7 @@ class ViewOperatorRayCast(bpy.types.Operator):
if event.value == 'RELEASE':
for pick_obj in self.pick_objects:
pick_restore(pick_obj)
context.area.header_text_set()
context.area.header_text_set("")
self.report({'INFO'}, "Cancelled")
return {'CANCELLED'}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment