Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add frame to the scene when initialization #1566

Merged
merged 1 commit into from
Jul 28, 2021
Merged

Add frame to the scene when initialization #1566

merged 1 commit into from
Jul 28, 2021

Conversation

pdcxs
Copy link
Contributor

@pdcxs pdcxs commented Jun 29, 2021

If we add an updater to the frame of the camera, and have not added the frame into the scene before, the updater will not work. So, I suggest to add the frame to the objects of the scene at the initilization stage.

If we add an updater to the frame of the camera, and have not added the frame into the scene before, the updater will not work. So, I suggest to add the frame to the objects of the scene at the initilization stage.
@TonyCrane
Copy link
Collaborator

But when we call Scene.clear(), self.mobjects will still become an empty list.

@pdcxs
Copy link
Contributor Author

pdcxs commented Jun 30, 2021

But when we call Scene.clear(), self.mobjects will still become an empty list.

I think it's ok, when we fork clear method, I think it's reasonable to clear the frame updater at the same time

@TonyCrane TonyCrane requested a review from 3b1b June 30, 2021 02:15
@3b1b 3b1b merged commit 2734424 into 3b1b:master Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants