Fix T41221: 3d view rendered mode crashes on new scene

This commit is contained in:
Sergey Sharybin
2014-07-28 16:32:36 +06:00
parent 5bfbe64a21
commit ff37a1d7fc

View File

@@ -510,6 +510,8 @@ Scene *BKE_scene_add(Main *bmain, const char *name)
sce->r.border.ymin = 0.0f;
sce->r.border.xmax = 1.0f;
sce->r.border.ymax = 1.0f;
sce->r.preview_start_resolution = 64;
sce->toolsettings = MEM_callocN(sizeof(struct ToolSettings), "Tool Settings Struct");
sce->toolsettings->doublimit = 0.001;