Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_userdef.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 1,095 Lines • ▼ Show 20 Lines | static void rna_UserDef_studiolight_light_ambient_get(PointerRNA *ptr, float *values) | ||||
| copy_v3_v3(values, sl->light_ambient); | copy_v3_v3(values, sl->light_ambient); | ||||
| } | } | ||||
| int rna_show_statusbar_vram_editable(struct PointerRNA *UNUSED(ptr), const char **UNUSED(r_info)) | int rna_show_statusbar_vram_editable(struct PointerRNA *UNUSED(ptr), const char **UNUSED(r_info)) | ||||
| { | { | ||||
| return GPU_mem_stats_supported() ? PROP_EDITABLE : 0; | return GPU_mem_stats_supported() ? PROP_EDITABLE : 0; | ||||
| } | } | ||||
| static int rna_userdef_experimental_use_new_curve_tools_editable(struct PointerRNA *ptr, | |||||
| const char **r_info) | |||||
| { | |||||
| if (U.experimental.use_new_curves_type) { | |||||
| return PROP_EDITABLE; | |||||
| } | |||||
| *r_info = "Only available when new curves type is enabled"; | |||||
| return 0; | |||||
| } | |||||
| #else | #else | ||||
| # define USERDEF_TAG_DIRTY_PROPERTY_UPDATE_ENABLE \ | # define USERDEF_TAG_DIRTY_PROPERTY_UPDATE_ENABLE \ | ||||
| RNA_define_fallback_property_update(0, "rna_userdef_is_dirty_update") | RNA_define_fallback_property_update(0, "rna_userdef_is_dirty_update") | ||||
| # define USERDEF_TAG_DIRTY_PROPERTY_UPDATE_DISABLE RNA_define_fallback_property_update(0, NULL) | # define USERDEF_TAG_DIRTY_PROPERTY_UPDATE_DISABLE RNA_define_fallback_property_update(0, NULL) | ||||
| /* TODO(sergey): This technically belongs to blenlib, but we don't link | /* TODO(sergey): This technically belongs to blenlib, but we don't link | ||||
| ▲ Show 20 Lines • Show All 5,277 Lines • ▼ Show 20 Lines | RNA_def_property_ui_text(prop, | ||||
| "Enable compositor full frame execution mode option (no tiling, " | "Enable compositor full frame execution mode option (no tiling, " | ||||
| "reduces execution time and memory usage)"); | "reduces execution time and memory usage)"); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | RNA_def_property_update(prop, 0, "rna_userdef_update"); | ||||
| prop = RNA_def_property(srna, "use_new_curves_type", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_new_curves_type", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "use_new_curves_type", 1); | RNA_def_property_boolean_sdna(prop, NULL, "use_new_curves_type", 1); | ||||
| RNA_def_property_ui_text(prop, "New Curves Type", "Enable the new curves data type in the UI"); | RNA_def_property_ui_text(prop, "New Curves Type", "Enable the new curves data type in the UI"); | ||||
| prop = RNA_def_property(srna, "use_new_curves_tools", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "use_new_curves_tools", 1); | |||||
| RNA_def_property_editable_func(prop, "rna_userdef_experimental_use_new_curve_tools_editable"); | |||||
| RNA_def_property_ui_text( | |||||
| prop, "New Curves Tools", "Enable additional features for the new curves data block"); | |||||
| prop = RNA_def_property(srna, "use_cycles_debug", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_cycles_debug", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "use_cycles_debug", 1); | RNA_def_property_boolean_sdna(prop, NULL, "use_cycles_debug", 1); | ||||
| RNA_def_property_ui_text(prop, "Cycles Debug", "Enable Cycles debugging options for developers"); | RNA_def_property_ui_text(prop, "Cycles Debug", "Enable Cycles debugging options for developers"); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | RNA_def_property_update(prop, 0, "rna_userdef_update"); | ||||
| prop = RNA_def_property(srna, "use_sculpt_tools_tilt", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_sculpt_tools_tilt", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "use_sculpt_tools_tilt", 1); | RNA_def_property_boolean_sdna(prop, NULL, "use_sculpt_tools_tilt", 1); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| ▲ Show 20 Lines • Show All 252 Lines • Show Last 20 Lines | |||||