EEVEE-Next: Scene sync fixes and improvements #115758
|
@ -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();
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue