Fix #113470: EEVEE-Next doesn't stop sampling
After performing a transformation EEVEE-Next non-stops resets the sampling. The cause is that the `recalc` flag that are stored in the Object isn't consumed. When transforming it was always filled with `ID_RECALC_TRANSFORM` and kept on resetting the sampling. Regression introduced by PR #113252. Pull Request: https://projects.blender.org/blender/blender/pulls/113484
This commit is contained in:
parent
87baecf33d
commit
9c52b4e606
|
@ -54,6 +54,7 @@ ObjectHandle &SyncModule::sync_object(Object *ob)
|
|||
DrawEngineType *owner = (DrawEngineType *)&DRW_engine_viewport_eevee_next_type;
|
||||
DrawData *dd = DRW_drawdata_ensure((ID *)ob, owner, sizeof(DrawData), nullptr, nullptr);
|
||||
handle.recalc |= dd->recalc;
|
||||
dd->recalc = 0;
|
||||
|
||||
const int recalc_flags = ID_RECALC_COPY_ON_WRITE | ID_RECALC_TRANSFORM | ID_RECALC_SHADING |
|
||||
ID_RECALC_GEOMETRY;
|
||||
|
|
Loading…
Reference in New Issue