OLD | NEW |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version. | 7 * of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 12723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12734 if (!scene->gm.exitkey) | 12734 if (!scene->gm.exitkey) |
12735 scene->gm.exitkey = 218; // Blender key
code for ESC | 12735 scene->gm.exitkey = 218; // Blender key
code for ESC |
12736 } | 12736 } |
12737 } | 12737 } |
12738 { | 12738 { |
12739 MovieClip *clip; | 12739 MovieClip *clip; |
12740 for(clip= main->movieclip.first; clip; clip= clip->id.ne
xt) { | 12740 for(clip= main->movieclip.first; clip; clip= clip->id.ne
xt) { |
12741 clip->proxy.build_tc_flag|= IMB_TC_RECORD_RUN_NO
_GAPS; | 12741 clip->proxy.build_tc_flag|= IMB_TC_RECORD_RUN_NO
_GAPS; |
12742 } | 12742 } |
12743 } | 12743 } |
| 12744 { |
| 12745 /* Set a default for the sun lamp's shadow frustum size
*/ |
| 12746 Lamp *la; |
| 12747 for (la= main->lamp.first; la; la= la->id.next) { |
| 12748 if (la->sun_shadow_frustum == 0.0) |
| 12749 la->sun_shadow_frustum= 10.0f; |
| 12750 } |
| 12751 } |
12744 } | 12752 } |
12745 | 12753 |
12746 /* WATCH IT!!!: pointers from libdata have not been converted yet here!
*/ | 12754 /* WATCH IT!!!: pointers from libdata have not been converted yet here!
*/ |
12747 /* WATCH IT 2!: Userdef struct init has to be in editors/interface/resou
rces.c! */ | 12755 /* WATCH IT 2!: Userdef struct init has to be in editors/interface/resou
rces.c! */ |
12748 | 12756 |
12749 /* don't forget to set version number in blender.c! */ | 12757 /* don't forget to set version number in blender.c! */ |
12750 } | 12758 } |
12751 | 12759 |
12752 #if 0 // XXX: disabled for now... we still don't have this in the right place in
the loading code for it to work | 12760 #if 0 // XXX: disabled for now... we still don't have this in the right place in
the loading code for it to work |
12753 static void do_versions_after_linking(FileData *fd, Library *lib, Main *main) | 12761 static void do_versions_after_linking(FileData *fd, Library *lib, Main *main) |
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14340 fd = blo_decode_and_check(fd, reports); | 14348 fd = blo_decode_and_check(fd, reports); |
14341 if (!fd) | 14349 if (!fd) |
14342 return NULL; | 14350 return NULL; |
14343 | 14351 |
14344 fd->reports= reports; | 14352 fd->reports= reports; |
14345 bfd= blo_read_file_internal(fd, ""); | 14353 bfd= blo_read_file_internal(fd, ""); |
14346 blo_freefiledata(fd); | 14354 blo_freefiledata(fd); |
14347 | 14355 |
14348 return bfd; | 14356 return bfd; |
14349 } | 14357 } |
OLD | NEW |