Repository navigation
Remove keybinds that didn't work, rebind screenshot - #477
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #477 +/- ##
==========================================
+ Coverage 88.55% 89.59% +1.04%
==========================================
Files 27 27
Lines 1319 1326 +7
==========================================
+ Hits 1168 1188 +20
+ Misses 151 138 -13 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
alessandrofelder
approved these changes
Oct 13, 2026
alessandrofelder
left a comment
Member
There was a problem hiding this comment.
Thanks @IgorTatarnikov
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before submitting a pull request (PR), please read the contributing guide.
Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)
Description
What is this PR
Why is this PR needed?
CI was having errors due to garbage collection of Scene objects. They were being kept alive by a circular reference between Scene and Plotter. The culprit can be seen below, this didn't have any effect but kept a reference hanging around preventing collection.
brainrender/brainrender/render.py
Line 55 in 0519356
What does this PR do?
Removes the previous machinery for adding key bindings that had no effect (tested by trying to use
sfor screenshot in a scene, onlyShift+sworked for the vedo screenshot). Added the screenshot key bind back using a weak ref this time to prevent the same loop.Now:
qquits as beforescalls thebrainrender.Scene.screenshotmethodShift + cprints the camera information (previously this was stated to becbut that wasn't actually bound, this was perhaps the oldvedokey bind that was relied on implicitly)How has this PR been tested?
Tested locally, the new screenshot key bind works.
Is this a breaking change?
No
Does this PR require an update to the documentation?
We should make sure the key bindings are documented somewhere.
Checklist: