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

CatmullRomCurve3: Cleanup #11366

Merged
merged 1 commit into from
May 19, 2017
Merged

CatmullRomCurve3: Cleanup #11366

merged 1 commit into from
May 19, 2017

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented May 19, 2017

A certain warning message is now placed in the constructor instead of getPoint. In this way, the user is informed earlier if a wrong points array is applied. I've also improved the message itself.

@@ -100,8 +102,6 @@ CatmullRomCurve3.prototype.getPoint = function ( t ) {
var points = this.points;
var l = points.length;

if ( l < 2 ) console.log( 'duh, you need at least 2 points' );
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my... Haha

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆

@mrdoob mrdoob merged commit 216b2a1 into mrdoob:dev May 19, 2017
@mrdoob
Copy link
Owner

mrdoob commented May 19, 2017

Thanks!

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.

2 participants