Here is the fix for #D5166
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
- Branch
- fades-operator-fix (branched from master)
- Build Status
Buildable 4986 Build 4986: arc lint + arc unit
Event Timeline
| release/scripts/startup/bl_operators/sequencer.py | ||
|---|---|---|
| 152–153 | A dict lookup here is be more efficient with many f-curves & strips. | |
| release/scripts/startup/bl_operators/sequencer.py | ||
|---|---|---|
| 152–153 | Sorry but I don't get what that'd be in this case. Using fcurves.find()? I don't know what would be fast in this kind of situation. | |
| release/scripts/startup/bl_operators/sequencer.py | ||
|---|---|---|
| 152–153 | Current loop looks at every f-curve for every sequence strip. if you have 100 strips and 100 f-curves, that's 10,000 comparisons. fcurves.find() would be an improvement but that just moves the comparisons to C. In this case you could do: fcurve_map = {
curve.data_path: curve
for curve in fcurves
if curve.data_path.startswith("sequence_editor.sequences_all")
}Then curve = fcurve_map.get(data_path) will give an efficient hash lookup. | |