diff options
-rw-r--r-- | release/scripts/startup/bl_operators/image.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/image.py b/release/scripts/startup/bl_operators/image.py index d0778ddafb2..790c22d57d0 100644 --- a/release/scripts/startup/bl_operators/image.py +++ b/release/scripts/startup/bl_operators/image.py @@ -145,7 +145,11 @@ class ProjectEdit(Operator): for image in bpy.data.images: image.tag = True - if 'FINISHED' not in bpy.ops.paint.image_from_view(): + # opengl buffer may fail, we can't help this, but best report it. + try: + ret = bpy.ops.paint.image_from_view() + except RuntimeError as err: + self.report({'ERROR'}, str(err)) return {'CANCELLED'} image_new = None |