Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_dopesheet.py
| Show First 20 Lines • Show All 335 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.separator() | layout.separator() | ||||
| layout.prop(st.dopesheet, "use_multi_word_filter", text="Multi-word Match Search") | layout.prop(st.dopesheet, "use_multi_word_filter", text="Multi-word Match Search") | ||||
| layout.separator() | layout.separator() | ||||
| layout.prop(st, "use_realtime_update") | layout.prop(st, "use_realtime_update") | ||||
| layout.prop(st, "show_sliders") | |||||
| # Sliders are always shown in the Shape Key Editor regardless of this setting. | |||||
sybren: There is no need to mention the task number here. The commit should mention the number, and the… | |||||
Done Inline ActionsThis comment mentions what happens, which is already clear from the code. The why should be documented, though. Something like "Sliders are always shown in the shapekey editor, regardless of this setting" would be clearer IMO. sybren: This comment mentions what happens, which is already clear from the code. The //why// should be… | |||||
| col = layout.column() | |||||
| col.active = context.space_data.mode != 'SHAPEKEY' | |||||
| col.prop(st, "show_sliders") | |||||
| layout.prop(st, "show_group_colors") | layout.prop(st, "show_group_colors") | ||||
| layout.prop(st, "show_interpolation") | layout.prop(st, "show_interpolation") | ||||
| layout.prop(st, "show_extremes") | layout.prop(st, "show_extremes") | ||||
| layout.prop(st, "use_auto_merge_keyframes") | layout.prop(st, "use_auto_merge_keyframes") | ||||
| layout.separator() | layout.separator() | ||||
| layout.prop(st, "show_markers") | layout.prop(st, "show_markers") | ||||
| ▲ Show 20 Lines • Show All 415 Lines • Show Last 20 Lines | |||||
There is no need to mention the task number here. The commit should mention the number, and the Git history can be used to find the commit in which this functionality changed.