Fix T46407: Enabling OSL breaks Vector Transform node
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 8 Oct 2015 14:04:15 +0000 (19:04 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 8 Oct 2015 14:04:42 +0000 (19:04 +0500)
intern/cycles/blender/blender_shader.cpp

index 30b14b87bd3d293fb2f9e22fdd3ee24318fdf648..a50c9ce9087e2936dd8e5358b55035fa0535ff1c 100644 (file)
@@ -290,7 +290,7 @@ static ShaderNode *add_node(Scene *scene,
        else if(b_node.is_a(&RNA_ShaderNodeVectorTransform)) {
                BL::ShaderNodeVectorTransform b_vector_transform_node(b_node);
                VectorTransformNode *vtransform = new VectorTransformNode();
-               vtransform->type = VectorTransformNode::type_enum[b_vector_transform_node.type()];
+               vtransform->type = VectorTransformNode::type_enum[b_vector_transform_node.vector_type()];
                vtransform->convert_from = VectorTransformNode::convert_space_enum[b_vector_transform_node.convert_from()];
                vtransform->convert_to = VectorTransformNode::convert_space_enum[b_vector_transform_node.convert_to()];
                node = vtransform;