diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-28 06:10:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-28 06:10:02 +0400 |
commit | 36b8846f6e934d1e1929826823b0d7eb2c3fbb6f (patch) | |
tree | 2e4073e2c88c2d52ec26aaa40a9f9d98de719437 /release/scripts/startup/bl_operators/image.py | |
parent | f8d0c8b11e176e86ce90aee6a6074e1945bd43c3 (diff) |
fix [#29063] reprojetion painting : failed to create opengl offscreen buffer
error report was not passed into the UI and only printed into the terminal, now shows an error popup.
Diffstat (limited to 'release/scripts/startup/bl_operators/image.py')
-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 |