From fc28732ba65a57bccd47940249999809c2c93eb0 Mon Sep 17 00:00:00 2001 From: IRIE Shinsuke Date: Wed, 23 Apr 2014 15:02:06 +0900 Subject: 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 --- source/blender/blenloader/intern/versioning_270.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/blenloader/intern') 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; + } } -- cgit v1.2.3