UI: Clip Graph: Use theme colors for speed axes
Replace the hardcoded red, green, blue colors for speed and reprojection error curves in the Clip Editor Graph, with theme X, Y, and Z settings respectively. Update the tooltip as well to reflect the change. See PR for details and screenshots. Pull Request: https://projects.blender.org/blender/blender/pulls/140409
This commit is contained in:
committed by
Pablo Vazquez
parent
e743fe6c97
commit
83a9cda08f
@@ -67,13 +67,13 @@ static void tracking_segment_start_cb(void *userdata,
|
||||
|
||||
switch (value_source) {
|
||||
case CLIP_VALUE_SOURCE_SPEED_X:
|
||||
col[0] = 1.0f;
|
||||
UI_GetThemeColor4fv(TH_AXIS_X, col);
|
||||
break;
|
||||
case CLIP_VALUE_SOURCE_SPEED_Y:
|
||||
col[1] = 1.0f;
|
||||
UI_GetThemeColor4fv(TH_AXIS_Y, col);
|
||||
break;
|
||||
case CLIP_VALUE_SOURCE_REPROJECTION_ERROR:
|
||||
col[2] = 1.0f;
|
||||
UI_GetThemeColor4fv(TH_AXIS_Z, col);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -8420,10 +8420,7 @@ static void rna_def_space_clip(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "show_graph_tracks_motion", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, nullptr, "flag", SC_SHOW_GRAPH_TRACKS_MOTION);
|
||||
RNA_def_property_ui_text(
|
||||
prop,
|
||||
"Show Tracks Motion",
|
||||
"Display the speed curves (in \"x\" direction red, in \"y\" direction green) "
|
||||
"for the selected tracks");
|
||||
prop, "Show Tracks Motion", "Display speed curves for the selected tracks");
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_CLIP, nullptr);
|
||||
|
||||
/* show graph tracks motion */
|
||||
|
||||
Reference in New Issue
Block a user