Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(477)

Issue 6827049: string socket type (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by dfelinto
Modified:
11 years, 6 months ago
Reviewers:
brechtvl, lukas.toenne1, bf-codereview
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

OSL 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -8 lines) Patch
intern/cycles/blender/blender_python.cpp View 1 3 chunks +10 lines, -0 lines 0 comments Download
intern/cycles/blender/blender_shader.cpp View 1 8 chunks +13 lines, -5 lines 0 comments Download
intern/cycles/render/graph.h View 1 3 chunks +4 lines, -1 line 0 comments Download
intern/cycles/render/osl.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download
source/blender/editors/space_node/drawnode.c View 1 2 chunks +40 lines, -0 lines 0 comments Download
source/blender/makesdna/DNA_node_types.h View 1 2 chunks +7 lines, -1 line 0 comments Download
source/blender/makesrna/intern/rna_nodetree.c View 1 5 chunks +24 lines, -1 line 0 comments Download
source/blender/nodes/NOD_socket.h View 1 1 chunk +1 line, -0 lines 0 comments Download
source/blender/nodes/intern/node_socket.c View 1 8 chunks +34 lines, -0 lines 0 comments Download

Messages

Total messages: 3
dfelinto
11 years, 6 months ago (2012-11-06 02:57:24 UTC) #1
lukas.toenne1
About node_add_input_from_template: This is used to initialize a socket value from the static C templates. ...
11 years, 6 months ago (2012-11-06 10:57:07 UTC) #2
dfelinto
11 years, 6 months ago (2012-11-06 18:33:13 UTC) #3
updated, addressed Lukas' points and working in cycles now
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b