Some more fixes to missing look initialization
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 9 Sep 2013 15:34:13 +0000 (15:34 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 9 Sep 2013 15:34:13 +0000 (15:34 +0000)
source/blender/blenkernel/intern/colortools.c
source/blender/imbuf/intern/colormanagement.c

index 8d60e432c7ea7067a3839f072f1e4dbcab1fc39f..7f94f365925fd59f03d4feb56afea82ee6e5206c 100644 (file)
@@ -1260,7 +1260,7 @@ void BKE_color_managed_view_settings_init(ColorManagedViewSettings *settings)
         *            for now use NONE to be compatible with all current files
         */
        BLI_strncpy(settings->view_transform, "Default", sizeof(settings->view_transform));
-       BLI_strncpy(settings->look, "NONE", sizeof(settings->look));
+       BLI_strncpy(settings->look, "None", sizeof(settings->look));
 
        settings->gamma = 1.0f;
        settings->exposure = 0.0f;
index e99bcb6fbfb4564f1b871d2455dc30a57da3f390..8de7b22d1434a6f02a6a84d77c165ff04a514a41 100644 (file)
@@ -906,6 +906,7 @@ static void init_default_view_settings(const ColorManagedDisplaySettings *displa
        else
                view_settings->view_transform[0] = '\0';
 
+       BLI_strncpy(view_settings->look, "None", sizeof(view_settings->look));
        view_settings->flag = 0;
        view_settings->gamma = 1.0f;
        view_settings->exposure = 0.0f;