Skip to content

Fix webotsjs type in parser#5995

Merged
BenjaminDeleze merged 1 commit intofix-webjs-bounding-spherefrom
fix-webotsjs-type
Mar 15, 2023
Merged

Fix webotsjs type in parser#5995
BenjaminDeleze merged 1 commit intofix-webjs-bounding-spherefrom
fix-webotsjs-type

Conversation

@BenjaminDeleze
Copy link
Copy Markdown

Description
Some floats/int were passed as string.
It was undetected until now because in most operation JS succeed to use string instead of number, for example:

"3" / 2 = 1.5

But it results in some NaN in #5985

@BenjaminDeleze BenjaminDeleze added the bug Something isn't working label Mar 15, 2023
@BenjaminDeleze BenjaminDeleze added this to the R2023b milestone Mar 15, 2023
@BenjaminDeleze BenjaminDeleze self-assigned this Mar 15, 2023
@BenjaminDeleze BenjaminDeleze requested a review from a team as a code owner March 15, 2023 09:23
Copy link
Copy Markdown
Member

@omichel omichel left a comment

Choose a reason for hiding this comment

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

Nice.

@BenjaminDeleze BenjaminDeleze merged commit 4e8e2a5 into fix-webjs-bounding-sphere Mar 15, 2023
@BenjaminDeleze BenjaminDeleze deleted the fix-webotsjs-type branch March 15, 2023 09:36
stefaniapedrazzi added a commit that referenced this pull request Mar 15, 2023
* Port bounding sphere fix to webotsjs

* Fix boundingSphere

* Fix CadShape bounding sphere

* Remove unused radius

* Update resources/web/wwi/nodes/WbDevice.js

Co-authored-by: Benjamin Délèze <benjamin.deleze@cyberbotics.com>

* Fix type in parser (#5995)

---------

Co-authored-by: Benjamin Délèze <benjamin.deleze@cyberbotics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

2 participants