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 2,679 Lines • ▼ Show 20 Lines | static void rna_def_view3d_cursor(BlenderRNA *brna) | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "View3DCursor", NULL); | srna = RNA_def_struct(brna, "View3DCursor", NULL); | ||||
| RNA_def_struct_sdna(srna, "View3DCursor"); | RNA_def_struct_sdna(srna, "View3DCursor"); | ||||
| RNA_def_struct_path_func(srna, "rna_View3DCursor_path"); | RNA_def_struct_path_func(srna, "rna_View3DCursor_path"); | ||||
| RNA_def_struct_ui_text(srna, "3D Cursor", ""); | RNA_def_struct_ui_text(srna, "3D Cursor", ""); | ||||
| RNA_def_struct_ui_icon(srna, ICON_CURSOR); | RNA_def_struct_ui_icon(srna, ICON_CURSOR); | ||||
| RNA_def_struct_clear_flag(srna, STRUCT_UNDO); | |||||
| prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_XYZ_LENGTH); | prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_XYZ_LENGTH); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "location"); | RNA_def_property_float_sdna(prop, NULL, "location"); | ||||
| RNA_def_property_ui_text(prop, "Location", ""); | RNA_def_property_ui_text(prop, "Location", ""); | ||||
| RNA_def_property_ui_range(prop, -10000.0, 10000.0, 10, 4); | RNA_def_property_ui_range(prop, -10000.0, 10000.0, 10, 4); | ||||
| RNA_def_property_update(prop, NC_WINDOW, NULL); | RNA_def_property_update(prop, NC_WINDOW, NULL); | ||||
| ▲ Show 20 Lines • Show All 5,284 Lines • Show Last 20 Lines | |||||