Skip to content

Commit

Permalink
Adjust screenshot call to latest Blender api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SBCV committed May 11, 2022
1 parent 814cbc4 commit 563b6c4
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions photogrammetry_importer/panels/screenshot_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,16 @@ def execute(self, context):
log_report(
"INFO", "Output File Path: " + str(current_frame_fp), self
)
bpy.ops.screen.screenshot(
filepath=current_frame_fp,
full=full_screenshot,
check_existing=False,
)
if full_screenshot:
bpy.ops.screen.screenshot(
filepath=current_frame_fp,
check_existing=False,
)
else:
bpy.ops.screen.screenshot_area(
filepath=current_frame_fp,
check_existing=False,
)

# Restore previous settings
# Option 1
Expand Down

0 comments on commit 563b6c4

Please sign in to comment.