UI: Make Shutter Speed properties consistent in Eevee & Cycles.
-Use PROP_FACTOR for both (It is a factor of the total frame length) -Set soft max to 1 and hard max to 2 for both.
This commit is contained in:
@@ -5045,6 +5045,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "motion_blur_shutter", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_float_sdna(prop, NULL, "blurfac");
|
||||
RNA_def_property_range(prop, 0.01f, 2.0f);
|
||||
RNA_def_property_ui_range(prop, 0.01f, 1.0f, 1, 2);
|
||||
RNA_def_property_ui_text(prop, "Shutter", "Time taken in frames between shutter open and close");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_glsl_update");
|
||||
@@ -6213,10 +6214,11 @@ static void rna_def_scene_eevee(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 1, 64);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
|
||||
prop = RNA_def_property(srna, "motion_blur_shutter", PROP_FLOAT, PROP_UNSIGNED);
|
||||
prop = RNA_def_property(srna, "motion_blur_shutter", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_float_default(prop, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Shutter", "Time taken in frames between shutter open and close");
|
||||
RNA_def_property_ui_range(prop, 0.01f, 2.0f, 1, 2);
|
||||
RNA_def_property_range(prop, 0.01f, 2.0f);
|
||||
RNA_def_property_ui_range(prop, 0.01f, 1.0f, 1, 2);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_STATIC);
|
||||
|
||||
/* Shadows */
|
||||
|
||||
Reference in New Issue
Block a user