mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Related to T53003: tweak scene fps range.
Move restricted 'reasonable' range to ui_range, and allow wider values for manual settings.
This commit is contained in:
parent
a73b390f48
commit
3ee1a7978f
1 changed files with 4 additions and 2 deletions
|
|
@ -6059,14 +6059,16 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
|||
prop = RNA_def_property(srna, "fps", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "frs_sec");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 1, 120);
|
||||
RNA_def_property_range(prop, 1, SHRT_MAX);
|
||||
RNA_def_property_ui_range(prop, 1, 120, 1, -1);
|
||||
RNA_def_property_ui_text(prop, "FPS", "Framerate, expressed in frames per second");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_fps_update");
|
||||
|
||||
prop = RNA_def_property(srna, "fps_base", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "frs_sec_base");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 0.1f, 120.0f);
|
||||
RNA_def_property_range(prop, 1e-5f, 1e6f);
|
||||
RNA_def_property_ui_range(prop, 0.1f, 120.0f, 2, -1);
|
||||
RNA_def_property_ui_text(prop, "FPS Base", "Framerate base");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_fps_update");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue