diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-09-17 01:05:39 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-09-17 01:05:39 +0400 |
commit | bf8c078c55965b887ab8b63d5feb1988409af23f (patch) | |
tree | af27d1fbd4477976d742b5aff5c3d62fcb1593ec /source/blender/blenloader/intern | |
parent | 8b093329ff96afbabe9086946bfe34ac5545d6c0 (diff) |
Fix wrong temporary path in user preferences, revert startup.blend and instead
do the freestyle changes in BLO_update_defaults_startup_blend.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index 7acb205377b..6a0f1747d2f 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -27,6 +27,8 @@ #include "BLI_utildefines.h" +#include "DNA_freestyle_types.h" +#include "DNA_linestyle_types.h" #include "DNA_scene_types.h" #include "DNA_userdef_types.h" @@ -39,8 +41,17 @@ void BLO_update_defaults_startup_blend(Main *main) { Scene *scene; + SceneRenderLayer *srl; + FreestyleLineStyle *linestyle; - for (scene = main->scene.first; scene; scene = scene->id.next) + for (scene = main->scene.first; scene; scene = scene->id.next) { scene->r.im_format.planes = R_IMF_PLANES_RGBA; + + for (srl = scene->r.layers.first; srl; srl = srl->next) + srl->freestyleConfig.sphere_radius = 0.1f; + } + + for (linestyle = main->linestyle.first; linestyle; linestyle = linestyle->id.next) + linestyle->flag = LS_SAME_OBJECT; } |