EEVEE-Next: Scene sync fixes and improvements #115758

Merged
Miguel Pozo merged 5 commits from pragma37/blender:pull-eevee-sync-improvements into main 2023-12-04 15:58:01 +01:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit 13c321418d - Show all commits

View File

@ -66,6 +66,9 @@ void Instance::init(const int2 &output_res,
if (output_res != film.display_extent_get()) {
sampling.reset();
}
if (assign_if_different(overlays_enabled_, v3d && !(v3d->flag2 & V3D_HIDE_OVERLAYS))) {
sampling.reset();
}
update_eval_members();

View File

@ -55,6 +55,7 @@ class Instance {
UniformDataBuf global_ubo_;
uint64_t depsgraph_last_update_ = 0;
bool overlays_enabled_;
public:
ShaderModule &shaders;
@ -202,7 +203,7 @@ class Instance {
bool overlays_enabled() const
{
return v3d && ((v3d->flag2 & V3D_HIDE_OVERLAYS) == 0);
return overlays_enabled_;
}
bool use_scene_lights() const