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

Revert "Compile all UI nodes to static methods" #7186

Merged
merged 1 commit into from
Sep 21, 2016

Conversation

ke-yu
Copy link
Contributor

@ke-yu ke-yu commented Sep 21, 2016

Reverts #7178 as it changes nodes' behavior.

Previously, for a instance method node, say Surface.PointAtParameter, if its lacing is cross-product, the node will be compiled to code surface<1>.PointAtParameters(us<2>, vs<3>). As PointAtParameter(u:double, v:double) is an instance method, the replication guide <1> after input surface will simply be discarded, so the result will be a 2D list if us and vs both are 1D list and surface is a single object.

In #7178, node is compiled to static method, that is, Surface.PointAtParameter(s:surface, u:double, v:double), the replication guide <1> will be used. According to replication guide behavior, it forces to promote input s to a list, therefore the result will be a 3D list.

Though the new behavior is correct, to avoid breaking backward compatibility, #7178 is reverted.

@ke-yu ke-yu merged commit feb3af1 into master Sep 21, 2016
@QilongTang QilongTang deleted the revert-7178-static-methods branch September 25, 2017 13:45
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.

1 participant