Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 984 Lines • ▼ Show 20 Lines | if (area) { | ||||
| ListBase *regionbase = (area->spacedata.first == v3d) ? &area->regionbase : &v3d->regionbase; | ListBase *regionbase = (area->spacedata.first == v3d) ? &area->regionbase : &v3d->regionbase; | ||||
| ARegion *region = regionbase->last; /* always last in list, weak. */ | ARegion *region = regionbase->last; /* always last in list, weak. */ | ||||
| regiondata = region->regiondata; | regiondata = region->regiondata; | ||||
| } | } | ||||
| return rna_pointer_inherit_refine(ptr, &RNA_RegionView3D, regiondata); | return rna_pointer_inherit_refine(ptr, &RNA_RegionView3D, regiondata); | ||||
| } | } | ||||
| static void rna_SpaceView3D_object_type_visibility_update(Main *UNUSED(bmain), | |||||
| Scene *scene, | |||||
| PointerRNA *UNUSED(ptr)) | |||||
| { | |||||
| DEG_id_tag_update(&scene->id, ID_RECALC_BASE_FLAGS); | |||||
| } | |||||
| static void rna_SpaceView3D_region_quadviews_begin(CollectionPropertyIterator *iter, | static void rna_SpaceView3D_region_quadviews_begin(CollectionPropertyIterator *iter, | ||||
| PointerRNA *ptr) | PointerRNA *ptr) | ||||
| { | { | ||||
| View3D *v3d = (View3D *)(ptr->data); | View3D *v3d = (View3D *)(ptr->data); | ||||
| ScrArea *area = rna_area_from_space(ptr); | ScrArea *area = rna_area_from_space(ptr); | ||||
| int i = 3; | int i = 3; | ||||
| ARegion *region = | ARegion *region = | ||||
| ▲ Show 20 Lines • Show All 4,080 Lines • ▼ Show 20 Lines | static void rna_def_space_view3d(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Mirror VR Session", | "Mirror VR Session", | ||||
| "Synchronize the viewer perspective of virtual reality sessions with this 3D viewport"); | "Synchronize the viewer perspective of virtual reality sessions with this 3D viewport"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_SPACE | ND_SPACE_VIEW3D, "rna_SpaceView3D_mirror_xr_session_update"); | prop, NC_SPACE | ND_SPACE_VIEW3D, "rna_SpaceView3D_mirror_xr_session_update"); | ||||
| rna_def_object_type_visibility_flags_common(srna, | rna_def_object_type_visibility_flags_common(srna, | ||||
| NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING); | NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, | ||||
| "rna_SpaceView3D_object_type_visibility_update"); | |||||
| /* 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_SpaceView3D_icon_from_show_object_viewport_get", NULL, NULL); | prop, "rna_SpaceView3D_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 2,982 Lines • Show Last 20 Lines | |||||