diff options
author | Bastien Montagne <bastien@blender.org> | 2022-05-30 18:24:16 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-05-30 18:43:22 +0300 |
commit | 3437cf155e7ca73cb96882ed5372f5baf2eac78a (patch) | |
tree | 0d839b663cde40d1c8d87c968b6274f2d8ee2f36 /source/blender/makesdna/DNA_camera_types.h | |
parent | a5d9b3442d4ea5daaa56d8166bb52cfbca589643 (diff) |
LibOverride: Add full support for camera's background images.
Add support for adding (inserting) new background images into an
override of a linked Camera ID.
Request from the Blender studio.
This ended up being more involved than expected as it uncovered some
latent issues with existing background images code. Noticiably, a new
`BKE_camera_background_image_copy` had to be added to handle copying
of background images in a proper, generic ID-management way.
Diffstat (limited to 'source/blender/makesdna/DNA_camera_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_camera_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_camera_types.h b/source/blender/makesdna/DNA_camera_types.h index 9b3adc4c8dd..e0aec298cd0 100644 --- a/source/blender/makesdna/DNA_camera_types.h +++ b/source/blender/makesdna/DNA_camera_types.h @@ -194,6 +194,9 @@ enum { /* Axis flip options */ CAM_BGIMG_FLAG_FLIP_X = (1 << 7), CAM_BGIMG_FLAG_FLIP_Y = (1 << 8), + + /* That background image has been inserted in local override (i.e. it can be fully edited!). */ + CAM_BGIMG_FLAG_OVERRIDE_LIBRARY_LOCAL = (1 << 9), }; /* CameraBGImage->source */ |