Blender Git Commit Log

Git Commits -> Revision f4411b5

Revision f4411b5 by Pablo Dobarro (master)
February 25, 2020, 18:07 (GMT)
Fix T72721: Add visibility flags updates to the PBVH

Currently, there its a function that sets manually the fully_hidden flag
of the nodes from the visibility operators in paint_hide.c. The undo
code was not updating the flag, so the visibility state of the nodes was
incorrect after preforming undo operations. This sometimes was drawing
fully hidden nodes with empty buffers, causing artifacts in the
geometry.

I added a function to mark nodes which visibility state changed (similar
as we are updating the mask flags and the nodes bounding boxes). This
way, the tools, operators and undo code don't have to update the
visibility flags, making everything much simpler to understand and
maintain.

I did not remove the flag update code from the current visibility
operators in this patch, but after reimplementing them (and all the new
ones) in the new visibility system, all visibility updates should be
done using this method and the BKE_pbvh_node_fully_hidden_set function
should be removed.

Reviewed By: jbakker

Maniphest Tasks: T72721

Differential Revision: https://developer.blender.org/D6767

Commit Details:

Full Hash: f4411b58ade1d4d0921243756ecd3499e8d11cd2
Parent Commit: 9cc5af6
Lines Changed: +154, -7

4 Modified Paths:

/source/blender/blenkernel/BKE_pbvh.h (+8, -5) (Diff)
/source/blender/blenkernel/intern/pbvh.c (+139, -0) (Diff)
/source/blender/blenkernel/intern/subdiv_ccg.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/sculpt_undo.c (+5, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021