Skip to content

Don't instantiate a TextureStore each time we pick something in the scene #2754

@oktomus

Description

@oktomus

We recently added printable settings on texture store (8d94984). These settings are printed when the store is created. Thanks to this, we noticed a bug in appleseed.studio: each time the user wants to pick a material or an object, a new TextureStore is created.

The reason is that a ScenePicker is instantiated each time we call pick().

Because the picker is project based, we could just create it once.

Make sure to test in debug, and make sure to test picking during and after rendering, and after loading another project.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions