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

bproc.clean_up() resets render device to CPU #1114

Closed
simon-lgb opened this issue Jun 17, 2024 · 1 comment · Fixed by #1115
Closed

bproc.clean_up() resets render device to CPU #1114

simon-lgb opened this issue Jun 17, 2024 · 1 comment · Fixed by #1115
Labels
bug Something isn't working first answer provided

Comments

@simon-lgb
Copy link

Describe the issue

After calling bproc.clean_up(), all custom properties of the scene are deleted. This also affects the default settings setup in bproc.init() like the rendering device. In my opinion, this is unexpected behavior.

Minimal code example

import blenderproc as bproc
import bpy

bproc.init()

print(bpy.context.scene.cycles.device)

bproc.clean_up()

print(bpy.context.scene.cycles.device)

Files required to run the code

No response

Expected behavior

I would expect the initial setup of init to be kept intact or repeated where necessary.

BlenderProc version

2.7.1

@cornerfarmer
Copy link
Member

Thanks for the report, should be fixed by #1115

@cornerfarmer cornerfarmer added bug Something isn't working first answer provided and removed question Question, not yet a bug ;) labels Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working first answer provided
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants