Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_xr.c
| Show First 20 Lines • Show All 2,046 Lines • ▼ Show 20 Lines | RNA_def_property_boolean_funcs(prop, | ||||
| "rna_XrSessionSettings_use_absolute_tracking_get", | "rna_XrSessionSettings_use_absolute_tracking_get", | ||||
| "rna_XrSessionSettings_use_absolute_tracking_set"); | "rna_XrSessionSettings_use_absolute_tracking_set"); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Absolute Tracking", | "Absolute Tracking", | ||||
| "Allow the VR tracking origin to be defined independently of the headset location"); | "Allow the VR tracking origin to be defined independently of the headset location"); | ||||
| RNA_def_property_update(prop, NC_WM | ND_XR_DATA_CHANGED, NULL); | RNA_def_property_update(prop, NC_WM | ND_XR_DATA_CHANGED, NULL); | ||||
| rna_def_object_type_visibility_flags_common(srna, NC_WM | ND_XR_DATA_CHANGED); | rna_def_object_type_visibility_flags_common(srna, NC_WM | ND_XR_DATA_CHANGED, NULL); | ||||
| /* Helper for drawing the icon. */ | /* Helper for drawing the icon. */ | ||||
| prop = RNA_def_property(srna, "icon_from_show_object_viewport", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "icon_from_show_object_viewport", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_funcs( | RNA_def_property_int_funcs( | ||||
| prop, "rna_XrSessionSettings_icon_from_show_object_viewport_get", NULL, NULL); | prop, "rna_XrSessionSettings_icon_from_show_object_viewport_get", NULL, NULL); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Visibility Icon", ""); | RNA_def_property_ui_text(prop, "Visibility Icon", ""); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 475 Lines • Show Last 20 Lines | |||||