sculpt-dev: fix another pbvh cache crash
This commit is contained in:
parent
43af973cd9
commit
34d8df4aba
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue