diff options
author | IRIE Shinsuke <irieshinsuke@yahoo.co.jp> | 2014-04-23 10:02:06 +0400 |
---|---|---|
committer | IRIE Shinsuke <irieshinsuke@yahoo.co.jp> | 2014-04-23 10:03:34 +0400 |
commit | fc28732ba65a57bccd47940249999809c2c93eb0 (patch) | |
tree | 1ba4dbb7e6644adc029ae36f00e5ac86d27e4b1f /source/blender/blenloader | |
parent | 0e6b28e04b291dfe797432532208065c52ff3fdb (diff) |
Blender Internal: Add material property "Cast" which can disable both ray and buffer shadows.
Also refactor:
- Material property UI related to shadows
- Preparation of OR-ed mode flags (ma->mode_l) of render materials
Reviewers: brecht
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D313
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_270.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c index ab2a7271ba3..a09b02eca78 100644 --- a/source/blender/blenloader/intern/versioning_270.c +++ b/source/blender/blenloader/intern/versioning_270.c @@ -179,4 +179,11 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main) linestyle->integration_type = LS_INTEGRATION_MEAN; } } + + if (!DNA_struct_elem_find(fd->filesdna, "Material", "int", "mode2")) { /* will be replaced with version check when other new flag is added to mode2 */ + Material *ma; + + for (ma = main->mat.first; ma; ma = ma->id.next) + ma->mode2 = MA_CASTSHADOW; + } } |