Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/space_image.c
| Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | static void image_user_refresh_scene(const bContext *C, SpaceImage *sima) | ||||
| } | } | ||||
| /* Auto switch image to show in UV editor when selection changes. */ | /* Auto switch image to show in UV editor when selection changes. */ | ||||
| ED_space_image_auto_set(C, sima); | ED_space_image_auto_set(C, sima); | ||||
| } | } | ||||
| /* ******************** default callbacks for image space ***************** */ | /* ******************** default callbacks for image space ***************** */ | ||||
| static SpaceLink *image_create(const ScrArea *UNUSED(area), const Scene *UNUSED(scene)) | static SpaceLink *image_create(const wmWindow *UNUSED(win), const ScrArea *UNUSED(area)) | ||||
| { | { | ||||
| ARegion *region; | ARegion *region; | ||||
| SpaceImage *simage; | SpaceImage *simage; | ||||
| simage = MEM_callocN(sizeof(SpaceImage), "initimage"); | simage = MEM_callocN(sizeof(SpaceImage), "initimage"); | ||||
| simage->spacetype = SPACE_IMAGE; | simage->spacetype = SPACE_IMAGE; | ||||
| simage->zoom = 1.0f; | simage->zoom = 1.0f; | ||||
| simage->lock = true; | simage->lock = true; | ||||
| ▲ Show 20 Lines • Show All 1,063 Lines • Show Last 20 Lines | |||||