Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_edit.c
| Show All 36 Lines | |||||
| #include "DNA_userdef_types.h" | #include "DNA_userdef_types.h" | ||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BLI_blenlib.h" | #include "BLI_blenlib.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_depsgraph.h" | #include "BKE_depsgraph.h" | ||||
| #include "BKE_image.h" | |||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| #include "BKE_library.h" | #include "BKE_library.h" | ||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "BKE_node.h" | #include "BKE_node.h" | ||||
| #include "BKE_screen.h" | #include "BKE_screen.h" | ||||
| #include "BKE_scene.h" | #include "BKE_scene.h" | ||||
| #include "BIF_gl.h" | #include "BIF_gl.h" | ||||
| ▲ Show 20 Lines • Show All 2,137 Lines • ▼ Show 20 Lines | switch (sa->spacetype) { | ||||
| } | } | ||||
| case SPACE_IMAGE: | case SPACE_IMAGE: | ||||
| { | { | ||||
| SpaceImage *sima; | SpaceImage *sima; | ||||
| /* images should always show in stereo, even if | /* images should always show in stereo, even if | ||||
| * the file doesn't have views enabled */ | * the file doesn't have views enabled */ | ||||
| sima = sa->spacedata.first; | sima = sa->spacedata.first; | ||||
| if (sima->image && (sima->image->flag & IMA_IS_STEREO) && | if (sima->image && BKE_image_is_stereo(sima->image) && | ||||
| (sima->iuser.flag & IMA_SHOW_STEREO)) | (sima->iuser.flag & IMA_SHOW_STEREO)) | ||||
| { | { | ||||
| return true; | return true; | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case SPACE_NODE: | case SPACE_NODE: | ||||
| { | { | ||||
| Show All 34 Lines | |||||