Fix T41221: 3d view rendered mode crashes on new scene
This commit is contained in:
@@ -511,6 +511,8 @@ Scene *BKE_scene_add(Main *bmain, const char *name)
|
|||||||
sce->r.border.xmax = 1.0f;
|
sce->r.border.xmax = 1.0f;
|
||||||
sce->r.border.ymax = 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 = MEM_callocN(sizeof(struct ToolSettings), "Tool Settings Struct");
|
||||||
sce->toolsettings->doublimit = 0.001;
|
sce->toolsettings->doublimit = 0.001;
|
||||||
sce->toolsettings->uvcalc_margin = 0.001f;
|
sce->toolsettings->uvcalc_margin = 0.001f;
|
||||||
|
Reference in New Issue
Block a user