DescriptionOSL Node needs a string socket to get string parameters (e.g. filepaths).
1) This patch adds the necessary changes in Blender BUT not in Cycles.
For Cycles I think we need to also change:
cycles_xml.cpp and graph.h, graph.cpp
But I prefer to keep the patch clean at first
2) It's not clear to me what is the point of the function:
node_add_input_from_template (on node_socket.c)
So for now I'm passing "" to the string socket. To pass the real value I would need to add a char property in bNodeSocketTemplate
3) to test it you can use the file (instructions in the file):
http://www.pasteall.org/blend/17320
4) if someone prefer to do the change inloco and commit the patch + changes + cycles change, please go ahead
committed with changes on rev. 51957
Patch Set 1 #
Total comments: 3
Patch Set 2 : updated, addressed Lukas' points and working in cycles now #
MessagesTotal messages: 3
|