OSL Templates:
[blender.git] / source / blender / editors / space_text / text_format_osl.c
index a815fb2c34d1127bad0be59e22dd899ee470bc88..f313e9a5f2af0af0817ad9615ab1fd1f5b8cd06f 100644 (file)
@@ -144,7 +144,7 @@ static int txtfmt_osl_find_specialvar(const char *string)
        if      (STR_LITERAL_STARTSWITH(string, "shader",               len)) i = len;
        else if (STR_LITERAL_STARTSWITH(string, "surface",              len)) i = len;
        else if (STR_LITERAL_STARTSWITH(string, "volume",               len)) i = len;
-       else if (STR_LITERAL_STARTSWITH(string, "displacement", len)) i = len;
+       else if (STR_LITERAL_STARTSWITH(string, "displacement", len)) i = len;
        else                                                    i = 0;
 
        /* If next source char is an identifier (eg. 'i' in "definate") no match */