Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_scene_types.h
| Show First 20 Lines • Show All 1,816 Lines • ▼ Show 20 Lines | |||||
| /* (minimum frame number for current-frame) */ | /* (minimum frame number for current-frame) */ | ||||
| #define MINAFRAME -500000 | #define MINAFRAME -500000 | ||||
| #define MINAFRAMEF -500000.0f | #define MINAFRAMEF -500000.0f | ||||
| /* depricate this! */ | /* depricate this! */ | ||||
| #define TESTBASE(v3d, base) ( \ | #define TESTBASE(v3d, base) ( \ | ||||
| ((base)->flag & SELECT) && \ | ((base)->flag & SELECT) && \ | ||||
| ((base)->lay & v3d->lay) && \ | ((base)->lay & v3d->lay) && \ | ||||
| (BKE_localview_is_object_visible(v3d, base->object)) && \ | |||||
| (((base)->object->restrictflag & OB_RESTRICT_VIEW) == 0)) | (((base)->object->restrictflag & OB_RESTRICT_VIEW) == 0)) | ||||
| #define TESTBASELIB(v3d, base) ( \ | #define TESTBASELIB(v3d, base) ( \ | ||||
| ((base)->flag & SELECT) && \ | ((base)->flag & SELECT) && \ | ||||
| ((base)->lay & v3d->lay) && \ | ((base)->lay & v3d->lay) && \ | ||||
| (BKE_localview_is_object_visible(v3d, base->object)) && \ | |||||
| ((base)->object->id.lib == NULL) && \ | ((base)->object->id.lib == NULL) && \ | ||||
| (((base)->object->restrictflag & OB_RESTRICT_VIEW) == 0)) | (((base)->object->restrictflag & OB_RESTRICT_VIEW) == 0)) | ||||
| #define TESTBASELIB_BGMODE(v3d, scene, base) ( \ | #define TESTBASELIB_BGMODE(v3d, scene, base) ( \ | ||||
| ((base)->flag & SELECT) && \ | ((base)->flag & SELECT) && \ | ||||
| ((base)->lay & (v3d ? v3d->lay : scene->lay)) && \ | ((base)->lay & (v3d ? v3d->lay : scene->lay)) && \ | ||||
| (!v3d || !v3d->localviewd || BKE_localview_info_cmp(v3d->localviewd->info, base->object->localview)) && \ | |||||
| ((base)->object->id.lib == NULL) && \ | ((base)->object->id.lib == NULL) && \ | ||||
| (((base)->object->restrictflag & OB_RESTRICT_VIEW) == 0)) | (((base)->object->restrictflag & OB_RESTRICT_VIEW) == 0)) | ||||
| #define BASE_EDITABLE_BGMODE(v3d, scene, base) ( \ | #define BASE_EDITABLE_BGMODE(v3d, scene, base) ( \ | ||||
| ((base)->lay & (v3d ? v3d->lay : scene->lay)) && \ | ((base)->lay & (v3d ? v3d->lay : scene->lay)) && \ | ||||
| (!v3d || !v3d->localviewd || BKE_localview_info_cmp(v3d->localviewd->info, base->object->localview)) && \ | |||||
| ((base)->object->id.lib == NULL) && \ | ((base)->object->id.lib == NULL) && \ | ||||
| (((base)->object->restrictflag & OB_RESTRICT_VIEW) == 0)) | (((base)->object->restrictflag & OB_RESTRICT_VIEW) == 0)) | ||||
| #define BASE_SELECTABLE(v3d, base) ( \ | #define BASE_SELECTABLE(v3d, base) ( \ | ||||
| (base->lay & v3d->lay) && \ | ((base)->lay & v3d->lay) && \ | ||||
| (BKE_localview_is_object_visible(v3d, base->object)) && \ | |||||
| (base->object->restrictflag & (OB_RESTRICT_SELECT | OB_RESTRICT_VIEW)) == 0) | (base->object->restrictflag & (OB_RESTRICT_SELECT | OB_RESTRICT_VIEW)) == 0) | ||||
| #define BASE_VISIBLE(v3d, base) ( \ | #define BASE_VISIBLE(v3d, base) ( \ | ||||
| (base->lay & v3d->lay) && \ | ((base)->lay & v3d->lay) && \ | ||||
| (BKE_localview_is_object_visible(v3d, base->object)) && \ | |||||
| (base->object->restrictflag & OB_RESTRICT_VIEW) == 0) | (base->object->restrictflag & OB_RESTRICT_VIEW) == 0) | ||||
| #define BASE_VISIBLE_BGMODE(v3d, scene, base) ( \ | #define BASE_VISIBLE_BGMODE(v3d, scene, base) ( \ | ||||
| (base->lay & (v3d ? v3d->lay : scene->lay)) && \ | (base->lay & (v3d ? v3d->lay : scene->lay)) && \ | ||||
| (!v3d || !v3d->localviewd || BKE_localview_info_cmp(v3d->localviewd->info, base->object->localview)) && \ | |||||
| (base->object->restrictflag & OB_RESTRICT_VIEW) == 0) | (base->object->restrictflag & OB_RESTRICT_VIEW) == 0) | ||||
| #define FIRSTBASE scene->base.first | #define FIRSTBASE scene->base.first | ||||
| #define LASTBASE scene->base.last | #define LASTBASE scene->base.last | ||||
| #define BASACT (scene->basact) | #define BASACT (scene->basact) | ||||
| #define OBACT (BASACT ? BASACT->object: NULL) | #define OBACT (BASACT ? BASACT->object: NULL) | ||||
| #define V3D_CAMERA_LOCAL(v3d) ((!(v3d)->scenelock && (v3d)->camera) ? (v3d)->camera : NULL) | #define V3D_CAMERA_LOCAL(v3d) ((!(v3d)->scenelock && (v3d)->camera) ? (v3d)->camera : NULL) | ||||
| ▲ Show 20 Lines • Show All 356 Lines • Show Last 20 Lines | |||||