Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space_api.c
| Show All 25 Lines | |||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "RNA_define.h" | #include "RNA_define.h" | ||||
| #include "rna_internal.h" | #include "rna_internal.h" | ||||
| #ifdef RNA_RUNTIME | #ifdef RNA_RUNTIME | ||||
| #include "BKE_global.h" | |||||
| #include "ED_screen.h" | |||||
| #include "ED_text.h" | #include "ED_text.h" | ||||
| static void rna_RegionView3D_update(ID *id, RegionView3D *rv3d) | static void rna_RegionView3D_update(ID *id, RegionView3D *rv3d) | ||||
| { | { | ||||
| bScreen *sc = (bScreen *)id; | bScreen *sc = (bScreen *)id; | ||||
| ScrArea *sa; | ScrArea *sa; | ||||
| ARegion *ar; | ARegion *ar; | ||||
| area_region_from_regiondata(sc, rv3d, &sa, &ar); | area_region_from_regiondata(sc, rv3d, &sa, &ar); | ||||
| if (sa && ar && sa->spacetype == SPACE_VIEW3D) { | if (sa && ar && sa->spacetype == SPACE_VIEW3D) { | ||||
| View3D *v3d; | View3D *v3d = sa->spacedata.first; | ||||
| Scene *scene = ED_screen_scene_find(sc, G.main->wm.first); | |||||
| v3d = (View3D *)sa->spacedata.first; | |||||
| ED_view3d_update_viewmat(sc->scene, v3d, ar, NULL, NULL, NULL); | ED_view3d_update_viewmat(scene, v3d, ar, NULL, NULL, NULL); | ||||
| } | } | ||||
| } | } | ||||
| static void rna_SpaceTextEditor_region_location_from_cursor( | static void rna_SpaceTextEditor_region_location_from_cursor( | ||||
| ID *id, SpaceText *st, | ID *id, SpaceText *st, | ||||
| int line, int column, int r_pixel_pos[2]) | int line, int column, int r_pixel_pos[2]) | ||||
| { | { | ||||
| bScreen *sc = (bScreen *)id; | bScreen *sc = (bScreen *)id; | ||||
| ▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines | |||||