Merge branch 'master' into blender2.8
This commit is contained in:
commit
f3b384862d
|
@ -628,7 +628,7 @@ static void *bli_mempool_iternext(BLI_mempool_iter *iter)
|
|||
while (1) {
|
||||
iter->curchunk = *iter->curchunk_threaded_shared;
|
||||
if (iter->curchunk == NULL) {
|
||||
break;
|
||||
return ret;
|
||||
}
|
||||
if (atomic_cas_ptr((void **)iter->curchunk_threaded_shared, iter->curchunk, iter->curchunk->next) == iter->curchunk) {
|
||||
break;
|
||||
|
|
|
@ -196,8 +196,6 @@ ATTR_NONNULL(1)
|
|||
BLI_INLINE void BM_iter_parallel(
|
||||
BMesh *bm, const char itype, TaskParallelMempoolFunc func, void *userdata, const bool use_threading)
|
||||
{
|
||||
BLI_assert(bm != NULL);
|
||||
|
||||
/* inlining optimizes out this switch when called with the defined type */
|
||||
switch ((BMIterType)itype) {
|
||||
case BM_VERTS_OF_MESH:
|
||||
|
|
Loading…
Reference in New Issue