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): ...@@ -1315,7 +1315,7 @@ class drawPoly(bpy.types.Operator):
# reset header gui # reset header gui
context.area.tag_redraw() context.area.tag_redraw()
context.area.header_text_set() context.area.header_text_set("")
# Convert to Quads # Convert to Quads
bpy.ops.mesh.quads_convert_to_tris(quad_method='BEAUTY', ngon_method='BEAUTY') bpy.ops.mesh.quads_convert_to_tris(quad_method='BEAUTY', ngon_method='BEAUTY')
...@@ -1344,7 +1344,7 @@ class drawPoly(bpy.types.Operator): ...@@ -1344,7 +1344,7 @@ class drawPoly(bpy.types.Operator):
# reset header gui # reset header gui
context.area.tag_redraw() context.area.tag_redraw()
context.area.header_text_set() context.area.header_text_set("")
# restore selection mode and manipulator # restore selection mode and manipulator
......
...@@ -137,7 +137,7 @@ def widget_iter_template(context, mpr, ob, fmap, fmap_target): ...@@ -137,7 +137,7 @@ def widget_iter_template(context, mpr, ob, fmap, fmap_target):
if USE_VERBOSE: if USE_VERBOSE:
print("(iter-exit)", event) 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): 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): ...@@ -213,7 +213,7 @@ def widget_iter_pose_translate(context, mpr, ob, fmap, fmap_target):
else: else:
pose_bone_autokey(pose_bone, tweak_attr, tweak_attr_lock) 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): 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): ...@@ -323,7 +323,7 @@ def widget_iter_pose_rotate(context, mpr, ob, fmap, fmap_target):
else: else:
pose_bone_autokey(pose_bone, tweak_attr, tweak_attr_lock) 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): 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): ...@@ -387,7 +387,7 @@ def widget_iter_pose_scale(context, mpr, ob, fmap, fmap_target):
else: else:
pose_bone_autokey(pose_bone, tweak_attr, tweak_attr_lock) 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): def widget_iter_shapekey(context, mpr, ob, fmap, fmap_target):
...@@ -448,7 +448,7 @@ 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: else:
shape.id_data.keyframe_insert(shape.path_from_id() + ".value") 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): ...@@ -215,7 +215,7 @@ class ViewOperatorRayCast(bpy.types.Operator):
if event.value == 'RELEASE': if event.value == 'RELEASE':
if self.pick_objects: # avoid enter taking effect on startup if self.pick_objects: # avoid enter taking effect on startup
pick_finalize(context, self.pick_objects) pick_finalize(context, self.pick_objects)
context.area.header_text_set() context.area.header_text_set("")
self.report({'INFO'}, "Finished") self.report({'INFO'}, "Finished")
return {'FINISHED'} return {'FINISHED'}
...@@ -223,7 +223,7 @@ class ViewOperatorRayCast(bpy.types.Operator): ...@@ -223,7 +223,7 @@ class ViewOperatorRayCast(bpy.types.Operator):
if event.value == 'RELEASE': if event.value == 'RELEASE':
for pick_obj in self.pick_objects: for pick_obj in self.pick_objects:
pick_restore(pick_obj) pick_restore(pick_obj)
context.area.header_text_set() context.area.header_text_set("")
self.report({'INFO'}, "Cancelled") self.report({'INFO'}, "Cancelled")
return {'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