haggikrey - 2010-07-06

Hi, I tried to use an user option as mentioned in the docs and check in my shader for pass name:


Option "user" "string passname" ["beauty"]


    string passName;
    option("user:passname", passName);
    printf("passname %s\n", passName);
    normal nN = normalize(N);

    if (passName == "beauty") 

As soon as I implement the "if(passName…)", the renderer hangs. So I tried a printf() to check wether the variable is set correctly and I only get a (null) as result for passname. Any ideas?