Fix bug in particle API accessing the emitter
This commit is contained in:
parent
88ebffec96
commit
c27a1cfd63
Notes:
blender-bot
2023-02-14 10:37:50 +01:00
Referenced by issue #45640, Toggle drag groups doesn't work Referenced by issue #45575, CUDA error with Cmake build
|
@ -279,7 +279,7 @@ static void sculpt_undo_bmesh_restore_generic(bContext *C,
|
|||
unode->applied = true;
|
||||
}
|
||||
|
||||
if (ELEM(unode->type, SCULPT_UNDO_MASK, SCULPT_UNDO_MASK)) {
|
||||
if (unode->type == SCULPT_UNDO_MASK) {
|
||||
int i, totnode;
|
||||
PBVHNode **nodes;
|
||||
|
||||
|
|
|
@ -491,7 +491,7 @@ static int rna_ParticleSystem_tessfaceidx_on_emitter(ParticleSystem *particlesys
|
|||
num = cpa->num;
|
||||
|
||||
if (part->childtype == PART_CHILD_FACES) {
|
||||
if (ELEM(PART_FROM_FACE, PART_FROM_FACE, PART_FROM_VOLUME)) {
|
||||
if (ELEM(part->from, PART_FROM_FACE, PART_FROM_VOLUME)) {
|
||||
if (num != DMCACHE_NOTFOUND && num < totface) {
|
||||
*r_fuv = &cpa->fuv;
|
||||
return num;
|
||||
|
|
Loading…
Reference in New Issue