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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-04 14:06:23 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-04 14:11:06 +0300
commit270fd28496f7277d0685d0ee03fea23ab39e3aaa (patch)
tree1554b0958c4e73a10dcb4864abb393dd9d948798 /release/scripts/startup/bl_operators/object.py
parent2644e4f8f49b1224c7f32990185d7c063b3794d0 (diff)
Cleanup: use single quotes for enums
Diffstat (limited to 'release/scripts/startup/bl_operators/object.py')
-rw-r--r--release/scripts/startup/bl_operators/object.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index bef3fef952a..f74a783123b 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -895,7 +895,7 @@ class LoadImageAsEmpty:
@classmethod
def poll(cls, context):
- return context.mode == "OBJECT"
+ return context.mode == 'OBJECT'
def invoke(self, context, event):
context.window_manager.fileselect_add(self)
@@ -909,8 +909,8 @@ class LoadImageAsEmpty:
try:
image = bpy.data.images.load(self.filepath, check_existing=True)
except RuntimeError as ex:
- self.report({"ERROR"}, str(ex))
- return {"CANCELLED"}
+ self.report({'ERROR'}, str(ex))
+ return {'CANCELLED'}
bpy.ops.object.empty_add(
'INVOKE_REGION_WIN',