sculpt-dev: fix another pbvh cache crash

This commit is contained in:
Joseph Eagar 2022-03-24 10:38:25 -07:00
parent 43af973cd9
commit 34d8df4aba
1 changed files with 4 additions and 0 deletions

View File

@ -5167,6 +5167,10 @@ void BKE_pbvh_pmap_aquire(SculptPMap *pmap)
bool BKE_pbvh_pmap_release(SculptPMap *pmap)
{
if (!pmap) {
return false;
}
pmap->refcount--;
if (pmap->refcount == 0) {