Skip to content

Commit 09ac475

Browse files
committed
Revert "UPBGE: Test threading for animsys_evaluate_fcurves"
This reverts commit fa03de2. It causes issues in some files
1 parent 7ec7bba commit 09ac475

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

source/blender/blenkernel/intern/anim_sys.cc

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -576,22 +576,21 @@ static void animsys_evaluate_fcurves(PointerRNA *ptr,
576576
bool flush_to_original)
577577
{
578578
/* Calculate then execute each curve. */
579-
threading::parallel_for(fcurves.index_range(), 256, [&](const IndexRange range) {
580-
for (const int i : range) {
581-
FCurve *fcu = fcurves[i];
582-
if (!is_fcurve_evaluatable(fcu)) {
583-
continue;
584-
}
585-
PathResolvedRNA anim_rna;
586-
if (BKE_animsys_rna_path_resolve(ptr, fcu->rna_path, fcu->array_index, &anim_rna)) {
587-
const float curval = calculate_fcurve(&anim_rna, fcu, anim_eval_context);
588-
BKE_animsys_write_to_rna_path(&anim_rna, curval);
589-
if (flush_to_original) {
590-
animsys_write_orig_anim_rna(ptr, fcu->rna_path, fcu->array_index, curval);
591-
}
579+
for (FCurve *fcu : fcurves) {
580+
581+
if (!is_fcurve_evaluatable(fcu)) {
582+
continue;
583+
}
584+
585+
PathResolvedRNA anim_rna;
586+
if (BKE_animsys_rna_path_resolve(ptr, fcu->rna_path, fcu->array_index, &anim_rna)) {
587+
const float curval = calculate_fcurve(&anim_rna, fcu, anim_eval_context);
588+
BKE_animsys_write_to_rna_path(&anim_rna, curval);
589+
if (flush_to_original) {
590+
animsys_write_orig_anim_rna(ptr, fcu->rna_path, fcu->array_index, curval);
592591
}
593592
}
594-
});
593+
}
595594
}
596595

597596
/**

0 commit comments

Comments
 (0)