Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 5,757 Lines • ▼ Show 20 Lines | void RNA_def_scene(BlenderRNA *brna) | ||||
| RNA_def_property_float_funcs(prop, "rna_Scene_frame_float_get", "rna_Scene_frame_float_set", NULL); | RNA_def_property_float_funcs(prop, "rna_Scene_frame_float_get", "rna_Scene_frame_float_set", NULL); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_FRAME, "rna_Scene_frame_update"); | RNA_def_property_update(prop, NC_SCENE | ND_FRAME, "rna_Scene_frame_update"); | ||||
| prop = RNA_def_property(srna, "frame_start", PROP_INT, PROP_TIME); | prop = RNA_def_property(srna, "frame_start", PROP_INT, PROP_TIME); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "r.sfra"); | RNA_def_property_int_sdna(prop, NULL, "r.sfra"); | ||||
| RNA_def_property_int_funcs(prop, NULL, "rna_Scene_start_frame_set", NULL); | RNA_def_property_int_funcs(prop, NULL, "rna_Scene_start_frame_set", NULL); | ||||
| RNA_def_property_range(prop, MINFRAME, MAXFRAME); | RNA_def_property_range(prop, MINFRAME, MAXFRAME); | ||||
| RNA_def_property_int_default(prop, 1); | |||||
| RNA_def_property_ui_text(prop, "Start Frame", "First frame of the playback/rendering range"); | RNA_def_property_ui_text(prop, "Start Frame", "First frame of the playback/rendering range"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_FRAME_RANGE, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_FRAME_RANGE, NULL); | ||||
| prop = RNA_def_property(srna, "frame_end", PROP_INT, PROP_TIME); | prop = RNA_def_property(srna, "frame_end", PROP_INT, PROP_TIME); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "r.efra"); | RNA_def_property_int_sdna(prop, NULL, "r.efra"); | ||||
| RNA_def_property_int_funcs(prop, NULL, "rna_Scene_end_frame_set", NULL); | RNA_def_property_int_funcs(prop, NULL, "rna_Scene_end_frame_set", NULL); | ||||
| RNA_def_property_range(prop, MINFRAME, MAXFRAME); | RNA_def_property_range(prop, MINFRAME, MAXFRAME); | ||||
| RNA_def_property_int_default(prop, 250); | |||||
| RNA_def_property_ui_text(prop, "End Frame", "Final frame of the playback/rendering range"); | RNA_def_property_ui_text(prop, "End Frame", "Final frame of the playback/rendering range"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_FRAME_RANGE, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_FRAME_RANGE, NULL); | ||||
| prop = RNA_def_property(srna, "frame_step", PROP_INT, PROP_TIME); | prop = RNA_def_property(srna, "frame_step", PROP_INT, PROP_TIME); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "r.frame_step"); | RNA_def_property_int_sdna(prop, NULL, "r.frame_step"); | ||||
| RNA_def_property_range(prop, 0, MAXFRAME); | RNA_def_property_range(prop, 0, MAXFRAME); | ||||
| RNA_def_property_ui_range(prop, 1, 100, 1, -1); | RNA_def_property_ui_range(prop, 1, 100, 1, -1); | ||||
| ▲ Show 20 Lines • Show All 343 Lines • Show Last 20 Lines | |||||