Fix some UI script errors after recent keyword changes.
authorRoel Koster <kostex>
Tue, 28 Aug 2018 16:01:53 +0000 (18:01 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 28 Aug 2018 16:09:22 +0000 (18:09 +0200)
Differential Revision: https://developer.blender.org/D3654

release/scripts/startup/bl_operators/image.py
release/scripts/startup/bl_ui/space_image.py
release/scripts/startup/bl_ui/space_time.py
release/scripts/startup/bl_ui/space_view3d.py

index 28e5e59d7803e922f864b2eeecedb3233276d00e..caf5937cc9505badb6e901775cac00ab29eabb81 100644 (file)
@@ -103,7 +103,7 @@ class EditExternally(Operator):
             return {'CANCELLED'}
 
         if sd.type == 'IMAGE_EDITOR':
             return {'CANCELLED'}
 
         if sd.type == 'IMAGE_EDITOR':
-            filepath = image.filepath_from_user(sd.image_user)
+            filepath = image.filepath_from_user(image_user=sd.image_user)
         else:
             filepath = image.filepath
 
         else:
             filepath = image.filepath
 
index ef181d507c9510721d9183479eac21415d9fb924..8e163f86dc5e48f33daddb07b01bc901ef5ef63f 100644 (file)
@@ -219,7 +219,7 @@ class IMAGE_MT_image(Menu):
                 layout.operator("image.replace", text="Replace...")
                 layout.operator("image.reload", text="Reload")
 
                 layout.operator("image.replace", text="Replace...")
                 layout.operator("image.reload", text="Reload")
 
-            layout.operator("image.external_edit", "Edit Externally")
+            layout.operator("image.external_edit", text="Edit Externally")
 
         layout.separator()
 
 
         layout.separator()
 
index 2893e391b018d75023d8cb751393744ab7753091..7dc23550f525c77f7ca1c94690563c3845ba06d5 100644 (file)
@@ -182,7 +182,7 @@ def marker_menu_generic(layout):
     # layout.operator_context = 'EXEC_REGION_WIN'
 
     layout.column()
     # layout.operator_context = 'EXEC_REGION_WIN'
 
     layout.column()
-    layout.operator("marker.add", "Add Marker")
+    layout.operator("marker.add", text="Add Marker")
     layout.operator("marker.duplicate", text="Duplicate Marker")
 
     if len(bpy.data.scenes) > 10:
     layout.operator("marker.duplicate", text="Duplicate Marker")
 
     if len(bpy.data.scenes) > 10:
index 0f6f3fab6176c4e0e087b53ea8e93d7b2ed516a8..987430b2335a919b09c71fb81c440750ee8c5e8b 100644 (file)
@@ -638,7 +638,7 @@ class VIEW3D_MT_view_navigation(Menu):
         layout = self.layout
 
         layout.operator_enum("view3d.view_orbit", "type")
         layout = self.layout
 
         layout.operator_enum("view3d.view_orbit", "type")
-        props = layout.operator("view3d.view_orbit", "Orbit Opposite")
+        props = layout.operator("view3d.view_orbit", text="Orbit Opposite")
         props.type = 'ORBITRIGHT'
         props.angle = pi
 
         props.type = 'ORBITRIGHT'
         props.angle = pi