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 7,169 Lines • ▼ Show 20 Lines | void RNA_def_scene(BlenderRNA *brna) | ||||
| /* Game Settings */ | /* Game Settings */ | ||||
| prop = RNA_def_property(srna, "game_settings", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "game_settings", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_NEVER_NULL); | RNA_def_property_flag(prop, PROP_NEVER_NULL); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "gm"); | RNA_def_property_pointer_sdna(prop, NULL, "gm"); | ||||
| RNA_def_property_struct_type(prop, "SceneGameData"); | RNA_def_property_struct_type(prop, "SceneGameData"); | ||||
| RNA_def_property_ui_text(prop, "Game Data", ""); | RNA_def_property_ui_text(prop, "Game Data", ""); | ||||
| /* XXX - Causes ineffable linking error. */ | |||||
| #if 0 | |||||
| /* Statistics */ | /* Statistics */ | ||||
| func = RNA_def_function(srna, "statistics", "ED_info_stats_string"); | func = RNA_def_function(srna, "statistics", "ED_info_stats_string"); | ||||
| parm = RNA_def_pointer(func, "scene_layer", "SceneLayer", "", "Active layer"); | parm = RNA_def_pointer(func, "scene_layer", "SceneLayer", "", "Active layer"); | ||||
| RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); | ||||
| parm = RNA_def_string(func, "statistics", NULL, 0, "Statistics", ""); | parm = RNA_def_string(func, "statistics", NULL, 0, "Statistics", ""); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| #endif | |||||
| /* Grease Pencil */ | /* Grease Pencil */ | ||||
| prop = RNA_def_property(srna, "grease_pencil", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "grease_pencil", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "gpd"); | RNA_def_property_pointer_sdna(prop, NULL, "gpd"); | ||||
| RNA_def_property_struct_type(prop, "GreasePencil"); | RNA_def_property_struct_type(prop, "GreasePencil"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_REFCOUNT); | RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_REFCOUNT); | ||||
| RNA_def_property_ui_text(prop, "Grease Pencil Data", "Grease Pencil data-block"); | RNA_def_property_ui_text(prop, "Grease Pencil Data", "Grease Pencil data-block"); | ||||
| RNA_def_property_update(prop, NC_GPENCIL | ND_DATA | NA_EDITED, NULL); | RNA_def_property_update(prop, NC_GPENCIL | ND_DATA | NA_EDITED, NULL); | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||