merged from trunk 20741:20848
* Missing changes to release/windows/installer * Sequencer fixes in source/blender/src/seqaudio.c dont apply to 2.5 * brechts fix for #18855 r20763 wasnt merged, does this apply to 2.5?
This commit is contained in:
@@ -1300,9 +1300,23 @@ int psys_threads_init_distribution(ParticleThread *threads, Scene *scene, Derive
|
||||
/* for hair, sort by origindex, allows optimizations in rendering */
|
||||
/* however with virtual parents the children need to be in random order */
|
||||
if(part->type == PART_HAIR && !(part->childtype==PART_CHILD_FACES && part->parents!=0.0)) {
|
||||
COMPARE_ORIG_INDEX= dm->getFaceDataArray(dm, CD_ORIGINDEX);
|
||||
if(COMPARE_ORIG_INDEX)
|
||||
qsort(index, totpart, sizeof(int), compare_orig_index);
|
||||
if(from != PART_FROM_PARTICLE) {
|
||||
COMPARE_ORIG_INDEX = NULL;
|
||||
|
||||
if(from == PART_FROM_VERT) {
|
||||
if(dm->numVertData)
|
||||
COMPARE_ORIG_INDEX= dm->getVertDataArray(dm, CD_ORIGINDEX);
|
||||
}
|
||||
else {
|
||||
if(dm->numFaceData)
|
||||
COMPARE_ORIG_INDEX= dm->getFaceDataArray(dm, CD_ORIGINDEX);
|
||||
}
|
||||
|
||||
if(COMPARE_ORIG_INDEX) {
|
||||
qsort(index, totpart, sizeof(int), compare_orig_index);
|
||||
COMPARE_ORIG_INDEX = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* weights are no longer used except for FROM_PARTICLE, which needs them zeroed for indexing */
|
||||
|
||||
Reference in New Issue
Block a user