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 3,419 Lines • ▼ Show 20 Lines | static void rna_def_tool_settings(BlenderRNA *brna) | ||||
| RNA_def_property_ui_icon(prop, ICON_KEYINGSET, 0); | RNA_def_property_ui_icon(prop, ICON_KEYINGSET, 0); | ||||
| prop = RNA_def_property(srna, "use_keyframe_cycle_aware", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_keyframe_cycle_aware", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "autokey_flag", AUTOKEY_FLAG_CYCLEAWARE); | RNA_def_property_boolean_sdna(prop, NULL, "autokey_flag", AUTOKEY_FLAG_CYCLEAWARE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Cycle-Aware Keying", | "Cycle-Aware Keying", | ||||
| "For channels with cyclic extrapolation, keyframe insertion is automatically " | "For channels with cyclic extrapolation, keyframe insertion is automatically " | ||||
| "remapped inside the cycle time range, and keeps ends in sync"); | "remapped inside the cycle time range, and keeps ends in sync. Curves newly added to " | ||||
| "actions with a Manual Frame Range and Cyclic Animation are automatically made cyclic"); | |||||
| /* Keyframing */ | /* Keyframing */ | ||||
| prop = RNA_def_property(srna, "keyframe_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "keyframe_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "keyframe_type"); | RNA_def_property_enum_sdna(prop, NULL, "keyframe_type"); | ||||
| RNA_def_property_enum_items(prop, rna_enum_beztriple_keyframe_type_items); | RNA_def_property_enum_items(prop, rna_enum_beztriple_keyframe_type_items); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "New Keyframe Type", "Type of keyframes to create when inserting keyframes"); | prop, "New Keyframe Type", "Type of keyframes to create when inserting keyframes"); | ||||
| ▲ Show 20 Lines • Show All 724 Lines • ▼ Show 20 Lines | if (scene) { | ||||
| prop = RNA_def_property(srna, "pass_cryptomatte_depth", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "pass_cryptomatte_depth", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "cryptomatte_levels"); | RNA_def_property_int_sdna(prop, NULL, "cryptomatte_levels"); | ||||
| RNA_def_property_int_default(prop, 6); | RNA_def_property_int_default(prop, 6); | ||||
| RNA_def_property_range(prop, 2.0, 16.0); | RNA_def_property_range(prop, 2.0, 16.0); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Cryptomatte Levels", "Sets how many unique objects can be distinguished per pixel"); | prop, "Cryptomatte Levels", "Sets how many unique objects can be distinguished per pixel"); | ||||
| RNA_def_property_ui_range(prop, 2.0, 16.0, 2.0, 0.0); | RNA_def_property_ui_range(prop, 2.0, 16.0, 2.0, 0.0); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | ||||
| prop = RNA_def_property(srna, "use_pass_cryptomatte_accurate", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "cryptomatte_flag", VIEW_LAYER_CRYPTOMATTE_ACCURATE); | |||||
| RNA_def_property_boolean_default(prop, true); | |||||
| RNA_def_property_ui_text( | |||||
| prop, "Cryptomatte Accurate", "Generate a more accurate cryptomatte pass"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_pass_update"); | |||||
| } | } | ||||
| prop = RNA_def_property(srna, "use_solid", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_solid", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_SOLID); | RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_SOLID); | ||||
| RNA_def_property_ui_text(prop, "Solid", "Render Solid faces in this Layer"); | RNA_def_property_ui_text(prop, "Solid", "Render Solid faces in this Layer"); | ||||
| if (scene) { | if (scene) { | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 3,786 Lines • Show Last 20 Lines | |||||