This patch fixes T65012 by tagging the scene id for a dependency graph update. This is necessary because the flag that was previously set by toggle_matcap_flip wasn't actually used.
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
- Branch
- 2020-05-07-matcap-flip (branched from master)
- Build Status
Buildable 7944 Build 7944: arc lint + arc unit
Event Timeline
Comment Actions
To me that looks ok but i'm not sure ID_RECALC_BASE_FLAGS is the right flag. Let's hear from sergey.
Comment Actions
Use this:
- WM_event_add_notifier(C, NC_SCENE | NA_EDITED, scene); + DEG_id_tag_update(&scene->id, ID_RECALC_COPY_ON_WRITE); + WM_event_add_notifier(C, NC_SCENE | ND_RENDER_OPTIONS, scene);
ID_RECALC_BASE_FLAGS is working around the lack of notifier to redraw the 3D viewport.