diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-09-26 07:05:18 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-09-26 07:05:18 +0400 |
commit | 2854b9320254f99badf68fdf763e7101dbf153e5 (patch) | |
tree | 6cc9109711f1de20999746dca01c45da5b1db5b0 | |
parent | fe42ceb281f7a6b9b5cc65bfd687965bbaadb21b (diff) |
Fix for missing initialization of Freestyle RenderData parameters for new scenes.
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index eb98e381222..b6fc44ec016 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -521,6 +521,9 @@ Scene *BKE_scene_add(Main *bmain, const char *name) sce->r.preview_start_resolution = 64; + sce->r.line_thickness_mode = R_LINE_THICKNESS_ABSOLUTE; + sce->r.unit_line_thickness = 1.0f; + sce->toolsettings = MEM_callocN(sizeof(struct ToolSettings), "Tool Settings Struct"); sce->toolsettings->doublimit = 0.001; sce->toolsettings->uvcalc_margin = 0.001f; |