Hersir

Why getBoundingInfo returns Nullable ?

Recommended Posts

Since TypeScript strict-null checking detects that mesh._boundingInfo is Nullable, and the function returns this object, it was set as Nullable.

Let me check if there are any problems removing the Nullable from this function. The object is being created when it is called, so you are right - it always returns an object.

 

EDIT:

https://github.com/BabylonJS/Babylon.js/pull/3145

Share this post


Link to post
Share on other sites

Good question !

We tend to release a weekly npm package (at least until the final release). beta 4 will probably be released at the end of this week, unless a major change will require us to publish a new one.

I hope this is fine :) 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.