Fix for Freestyle rendering errors with color blend modes SOFT_LIGHT and LINEAR_LIGHT.
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Thu, 31 Oct 2013 07:41:40 +0000 (07:41 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Thu, 31 Oct 2013 07:41:40 +0000 (07:41 +0000)
source/blender/freestyle/intern/python/BPy_Freestyle.cpp

index 680f399cc775a7ccda5cd4ff37993f6328e5ebd0..c28f6ef67623fe3ccfe5a533383712d057a0aae4 100644 (file)
@@ -101,8 +101,8 @@ static int ramp_blend_type(const char *type)
        if (!strcmp(type, "SATURATION"))    return MA_RAMP_SAT;
        if (!strcmp(type, "VALUE"))         return MA_RAMP_VAL;
        if (!strcmp(type, "COLOR"))         return MA_RAMP_COLOR;
-       if (!strcmp(type, "SOFT LIGHT"))    return MA_RAMP_SOFT;
-       if (!strcmp(type, "LINEAR LIGHT"))  return MA_RAMP_LINEAR;
+       if (!strcmp(type, "SOFT_LIGHT"))    return MA_RAMP_SOFT;
+       if (!strcmp(type, "LINEAR_LIGHT"))  return MA_RAMP_LINEAR;
        return -1;
 }