Skip to content

Commit 5734c14

Browse files
committed
TSL: Fix expected output if used a.assign( b ), returns a
1 parent 09ea62e commit 5734c14

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

examples/jsm/nodes/shadernode/ShaderNode.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ const shaderNodeHandler = {
4040

4141
if ( node.isStackNode !== true && prop === 'assign' ) {
4242

43-
return ( ...params ) => currentStack.assign( nodeObj, ...params );
43+
return ( ...params ) => {
44+
45+
currentStack.assign( nodeObj, ...params );
46+
47+
return nodeObj;
48+
49+
};
4450

4551
} else if ( NodeElements.has( prop ) ) {
4652

0 commit comments

Comments
 (0)