Skip to content

Commit

Permalink
Fixed bug in #360
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Jun 5, 2024
1 parent 17cf3d6 commit 311c0e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion brainrender/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def render(
camera["focal_point"] = self.root._mesh.center_of_mass()

if not self.backend and camera is not None:
_ = set_camera(self, camera)
camera = set_camera(self, camera)

# Apply axes correction
for actor in self.clean_actors:
Expand Down Expand Up @@ -266,6 +266,7 @@ def render(
bg=settings.BACKGROUND_COLOR,
rate=40,
axes=self.plotter.axes,
resetcam=False,
)
elif self.backend == "k3d": # pragma: no cover
# Remove silhouettes
Expand Down

0 comments on commit 311c0e3

Please sign in to comment.