Skip to content

Commit

Permalink
Reverted reset_cam dynamic setting, add new screenshots to data folder
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Jun 6, 2024
1 parent 27b35fc commit 79af004
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions brainrender/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,10 @@ def render(

# Get camera
camera = camera or settings.DEFAULT_CAMERA
reset_cam = True
if isinstance(camera, str):
camera = get_camera(camera)
else:
camera = check_camera_param(camera)
# Don't reset the camera if custom dict is passed
reset_cam = False

if "focal_point" not in camera.keys() or camera["focal_point"] is None:
camera["focal_point"] = self.root._mesh.center_of_mass()
Expand Down Expand Up @@ -269,7 +266,7 @@ def render(
bg=settings.BACKGROUND_COLOR,
rate=40,
axes=self.plotter.axes,
resetcam=reset_cam,
resetcam=False,
)
elif self.backend == "k3d": # pragma: no cover
# Remove silhouettes
Expand Down
Binary file modified tests/data/screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/data/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 79af004

Please sign in to comment.