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

prevents empty text from being rendered #76

Merged
merged 1 commit into from
Aug 7, 2014
Merged

prevents empty text from being rendered #76

merged 1 commit into from
Aug 7, 2014

Conversation

rctoris
Copy link
Contributor

@rctoris rctoris commented Aug 6, 2014

Computing a bounding box on https://github.com/rctoris/ros3djs/compare/RobotWebTools:develop...develop#diff-ed07448aa3074b47ea2aa22b6bd8b70fL235 causes an error if the empty string was rendered. This prevents any empty strings from being "displayed."

mesh.rotation.x = Math.PI * 0.5;
mesh.rotation.y = Math.PI * 1.5;
this.add(mesh);
// position the text and add it
Copy link
Member

Choose a reason for hiding this comment

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

Stupid question: did these lines change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indentation changed due to the if statement!

Copy link
Member

Choose a reason for hiding this comment

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

Oh of course. It was not obvious in my browser. :)

sosentos added a commit that referenced this pull request Aug 7, 2014
prevents empty text from being rendered
@sosentos sosentos merged commit 3fefcc6 into RobotWebTools:develop Aug 7, 2014
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