forked from blender/blender
Fix: Crash in sculpt mode with shared normals caches #4
No reviewers
Labels
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HooglyBoogly/blender#4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-pbvh-normals-crash"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since the normals are stored in a shared cache, tagging them dirty
recreated the cache from scratch when it was shared. Instead,
add a function that updates the cache in the same call as tagging
it dirty. This keeps the old state of the cache around even if it was
shared, and reflects the way that it's really the PBVH and sculpt
mode managing the dirty status of normals while sculpt mode
is active.
One consequence is that the BVH cache and the triangulation
cache need to be tagged dirty manually. I'd like to avoid abstracting
this more than necessary, because I'm hoping in the long term
different caching abstractions like a more global cache that takes
implicit sharing versions into account will make this complexity
unnecessary.
Fixes #111628, #111563
Fix #111628, #111563: Crash in sculpt mode with shared normals cachesto Fix: Crash in sculpt mode with shared normals cachesPull request closed