forked from bartvdbraak/blender
Fix #30467: UV/Image Editor: Scope: Opacity Values maybe wrong
Internally vector and waveform opacities are stored as float in 0..1 range and the same range is exposed to the UI. From file compatibility POV decided to change prop's type from percentage to factor so it'll be nice slider with 0..1 range without confusing percentage symbols (which should be quite easy to follow) and both forward and backwards compatibilities are here.
This commit is contained in:
parent
4a02307236
commit
50b6c903ff
@ -587,12 +587,12 @@ static void rna_def_scopes(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Waveform Mode", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Scopes_update");
|
||||
|
||||
prop = RNA_def_property(srna, "waveform_alpha", PROP_FLOAT, PROP_PERCENTAGE);
|
||||
prop = RNA_def_property(srna, "waveform_alpha", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_float_sdna(prop, "Scopes", "wavefrm_alpha");
|
||||
RNA_def_property_range(prop, 0, 1);
|
||||
RNA_def_property_ui_text(prop, "Waveform Opacity", "Opacity of the points");
|
||||
|
||||
prop = RNA_def_property(srna, "vectorscope_alpha", PROP_FLOAT, PROP_PERCENTAGE);
|
||||
prop = RNA_def_property(srna, "vectorscope_alpha", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_float_sdna(prop, "Scopes", "vecscope_alpha");
|
||||
RNA_def_property_range(prop, 0, 1);
|
||||
RNA_def_property_ui_text(prop, "Vectorscope Opacity", "Opacity of the points");
|
||||
|
Loading…
Reference in New Issue
Block a user