Hersir Posted November 14, 2017 Share Posted November 14, 2017 Hi, why is getBoundingInfo() returning Nullable<BoundingInfo> as from code looks like it always returns bounding info. Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 14, 2017 Share Posted November 14, 2017 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 Hersir 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 14, 2017 Share Posted November 14, 2017 Merged! thanks guys. It will actually help me remove a lot of redundant code Hersir 1 Quote Link to comment Share on other sites More sharing options...
Hersir Posted November 15, 2017 Author Share Posted November 15, 2017 Can it be released on npm? Quote Link to comment Share on other sites More sharing options...
RaananW Posted November 15, 2017 Share Posted November 15, 2017 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 Quote Link to comment Share on other sites More sharing options...
Hersir Posted November 15, 2017 Author Share Posted November 15, 2017 Ok will make local version till next release , thx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.