Blender Git Commit Log
Git Commits -> Revision b84b348
Revision b84b348 by Richard Antalik (lineart-shadow) December 8, 2021, 06:51 (GMT) |
Cleanup: Remove seq->tmp_flag DNA member Commit f0d20198b290 used this field to flag rendered strips which were queried by `SEQ_query_rendered_strips()`. Then operators iterate all strips and checks state of `seq->tmp_flag`. Use collection returned by `SEQ_query_rendered_strips` directly. There should be no functional changes. This commit adds functions `all_strips_from_context` and `selected_strips_from_context` that provide collection of strips based on context. Most operators can use this collection directly. There is already `seq->tmp` DNA field, but is should not be used unless absolutely necessary. Better option is to use human readable flag. Best is to not use DNA fields for temporary storage in runtime. |
Commit Details:
Full Hash: b84b3486361b4fd1b9e861f8926fb738f098839d
Parent Commit: da8bf6e
Committed By: YimingWu
Lines Changed: +121, -146
6 Modified Paths:
/source/blender/editors/space_sequencer/sequencer_edit.c (+10, -14) (Diff)
/source/blender/editors/space_sequencer/sequencer_intern.h (+20, -0) (Diff)
/source/blender/editors/space_sequencer/sequencer_select.c (+90, -99) (Diff)
/source/blender/makesdna/DNA_sequence_types.h (+1, -2) (Diff)
/source/blender/sequencer/intern/iterator.c (+0, -26) (Diff)
/source/blender/sequencer/SEQ_iterator.h (+0, -5) (Diff)
/source/blender/editors/space_sequencer/sequencer_intern.h (+20, -0) (Diff)
/source/blender/editors/space_sequencer/sequencer_select.c (+90, -99) (Diff)
/source/blender/makesdna/DNA_sequence_types.h (+1, -2) (Diff)
/source/blender/sequencer/intern/iterator.c (+0, -26) (Diff)
/source/blender/sequencer/SEQ_iterator.h (+0, -5) (Diff)