Color management: initialize input color space on movie clip load
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 24 Aug 2012 14:01:01 +0000 (14:01 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 24 Aug 2012 14:01:01 +0000 (14:01 +0000)
source/blender/blenkernel/intern/movieclip.c

index c56bb76157918fb4c232483906911677ffd1162c..50628ac857a401d32934ab1592f895970c128a75 100644 (file)
@@ -66,6 +66,7 @@
 
 #include "BKE_animsys.h"
 #include "BKE_constraint.h"
+#include "BKE_colortools.h"
 #include "BKE_library.h"
 #include "BKE_global.h"
 #include "BKE_main.h"
@@ -480,6 +481,7 @@ static MovieClip *movieclip_alloc(const char *name)
        clip->aspx = clip->aspy = 1.0f;
 
        BKE_tracking_settings_init(&clip->tracking);
+       BKE_color_managed_colorspace_settings_init(&clip->colorspace_settings);
 
        clip->proxy.build_size_flag = IMB_PROXY_25;
        clip->proxy.build_tc_flag = IMB_TC_RECORD_RUN |