Page MenuHome

Fix missing Sculpt Overlays updates when using modifiers
ClosedPublic

Authored by Pablo Dobarro (pablodp606) on Sep 19 2020, 5:03 PM.

Details

Summary

Now that sculpt mask and face sets can also be drawn without using the
PBVH, these operators need these extra updates when the data changes.

Diff Detail

Repository
rB Blender
Branch
arcpatch-D8956_1 (branched from master)
Build Status
Buildable 10717
Build 10717: arc lint + arc unit

Event Timeline

Pablo Dobarro (pablodp606) requested review of this revision.Sep 19 2020, 5:03 PM
Sergey Sharybin (sergey) requested changes to this revision.Sep 21 2020, 9:16 AM

Please move the tagging into own utility function, where the logic is implemented in a single place and is explained when is to be used and what is the design decision behind this.

In general, when you see a duplicated code think: should it really be duplicated? More often than never it is not to be duplicated.

This revision now requires changes to proceed.Sep 21 2020, 9:16 AM
Sergey Sharybin (sergey) requested changes to this revision.Sep 30 2020, 11:53 AM
Sergey Sharybin (sergey) added inline comments.
source/blender/editors/sculpt_paint/sculpt_intern.h
67

flush is the wrong term here. In blender flush means that tags gets flushed from "parents" to the dependencies. This is tag.

Please also add a brief explanation after which modifications this function is to be used.

This revision now requires changes to proceed.Sep 30 2020, 11:53 AM
Pablo Dobarro (pablodp606) marked an inline comment as done.
  • Review update
This revision is now accepted and ready to land.Oct 14 2020, 10:45 AM