mirror of
https://github.com/HeyPuter/blender.git
synced 2026-11-13 20:14:43 -10:00
... if Scenes are included.
At the time of reporting, these were the problematic properties to
handle in the `backup_scene` handling for doing previews:
- `scene.render.image_settings.linear_colorspace_settings`
- `scene.render.bake.image_settings.linear_colorspace_settings`
- `scene.display.shading.wireframe_color_type`
- `scene.asset_data`
- `scene.collection.asset_data`
For the first three, it looks like these were just not properly
initialized in all cases (so restoring them would fail with invalid
[enum] values). Investigation as to why this is stopped at some point
(but it looked like there could be something wrong with nested structs
-- I still had a note about using `SDNA_DEFAULT_DECL_EX` -- anyhow, that
all changed with #139113 again...)
In the case of the `asset_data`, this goes wrong (cant be assigned) if
not and asset already (check `rna_ID_asset_data_set`).
It looks like in current main, the issue with `wireframe_color_type` was
resolved (with ab4f5ef5f2 ?)
Also I cannot repro the issue with the
`scene.render.image_settings.linear_colorspace_settings` anymore.
That leaves us with the following (which this PR adds to
`exclude_props`)
- `scene.render.bake.image_settings.linear_colorspace_settings`
- `scene.asset_data`
- `scene.collection.asset_data`
Pull Request: https://projects.blender.org/blender/blender/pulls/152892