diff options
author | Bastien Montagne <bastien@blender.org> | 2022-03-03 16:50:52 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-03-03 16:52:45 +0300 |
commit | 1b863041c9746029bd6d867539550043944822d9 (patch) | |
tree | 4f95d9245ab912dff0db4cf32f90b6485a951196 /source/blender/makesrna/intern/rna_fcurve.c | |
parent | 0f7793303118a7e3bf62168e9e8bca4d9e28f873 (diff) |
i18n: Fix more potential contextual issues with "Back" UI label.
Add 'ID_ACTION' context to some animation curve interpolation enums.
Related to T95506/T43295.
Diffstat (limited to 'source/blender/makesrna/intern/rna_fcurve.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_fcurve.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_fcurve.c b/source/blender/makesrna/intern/rna_fcurve.c index 8f418fcc7c7..af14a169d68 100644 --- a/source/blender/makesrna/intern/rna_fcurve.c +++ b/source/blender/makesrna/intern/rna_fcurve.c @@ -2111,6 +2111,7 @@ static void rna_def_fkeyframe(BlenderRNA *brna) "Interpolation", "Interpolation method to use for segment of the F-Curve from " "this Keyframe until the next Keyframe"); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ACTION); RNA_def_property_update(prop, NC_ANIMATION | ND_KEYFRAME_PROP, "rna_Keyframe_update"); prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE); @@ -2131,6 +2132,7 @@ static void rna_def_fkeyframe(BlenderRNA *brna) prop = RNA_def_property(srna, "back", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "back"); RNA_def_property_ui_text(prop, "Back", "Amount of overshoot for 'back' easing"); + RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ACTION); RNA_def_property_update(prop, NC_ANIMATION | ND_KEYFRAME_PROP, "rna_Keyframe_update"); prop = RNA_def_property(srna, "amplitude", PROP_FLOAT, PROP_NONE); |