Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeMaterial: Fix ExpressionNode contructor's type definition #20213

Merged

Conversation

martinRenou
Copy link
Contributor

The constructor type definition did not match the actual implementation (the order of the arguments was wrong), see https://github.com/mrdoob/three.js/blob/dev/examples/jsm/nodes/core/ExpressionNode.js#L3

I wonder if this should be merged, or if we should instead change the implementation of the constructor so that it's more homogeneous with the FunctionNode constructor. What do you think @sunag ?

Signed-off-by: martinRenou <martin.renou@gmail.com>
@mrdoob mrdoob added this to the r121 milestone Aug 28, 2020
@sunag
Copy link
Collaborator

sunag commented Aug 29, 2020

NIce... I think that only ts is necessary. ExpressionNode arguments order is made to facilitate the constructor of the class. FunctioNode auto-detect the output because the output is defined in src.

@mrdoob mrdoob merged commit f77b19a into mrdoob:dev Sep 29, 2020
@mrdoob
Copy link
Owner

mrdoob commented Sep 29, 2020

Thanks!

@martinRenou martinRenou deleted the NodeMaterial_expressionnode_ctor_typedef branch September 30, 2020 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants