This is a simple but a bit ugly workaround. To check if active render
layer is changed, compare the whole parameters of render layers.
Details
Details
- Reviewers
Brecht Van Lommel (brecht) - Commits
- rBS49e8cfd809fe: Further work to fix T38726: signal viewport to update when adding/removing…
rBAC49e8cfd809fe: Further work to fix T38726: signal viewport to update when adding/removing…
rB49e8cfd809fe: Further work to fix T38726: signal viewport to update when adding/removing…
Diff Detail
Diff Detail
Event Timeline
| source/blender/render/intern/source/pipeline.c | ||
|---|---|---|
| 505–506 ↗ | (On Diff #1099) | This is too ugly a hack, there has to be a better solution. |
| source/blender/render/intern/source/pipeline.c | ||
|---|---|---|
| 505–506 ↗ | (On Diff #1099) | Agreed, this should be replaced with the better solution. But maybe it becomes complicated. |
Comment Actions
- Add a numerical identifier to RenderData to ensure uniqueness of each edit in render layer list.
Don't compare the whole parameters anymore.
The preview might not be updated correctly if incrementation of the
identifier overflows, though that's quite rare case.
BTW, the previous patch should've used SceneRenderLayer, not RenderLayer.
Comment Actions
Closed by commit rB49e8cfd809fe (authored by @Shinsuke Irie (irie), committed by @Brecht Van Lommel (brecht)).