Blender Git Commit Log
Git Commits -> Revision 1ef8ef4
Revision 1ef8ef4 by Richard Antalik (master) December 1, 2021, 11:49 (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: 1ef8ef4941dd84c8968109b5c858ed8d082d9187
Parent Commit: d5d91b4
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)