TMTH Posted January 30, 2017 Share Posted January 30, 2017 Th following code was working in previous release (preview), rendering text on two lines: new Text2D("AAA\nBBB", settings) In current release (announced at 29 Jan) it doesn't work. It produces following exception: Uncaught TypeError: Cannot read property 'offset' of undefined at Text2DInstanceData.descriptor.set [as transformX] (http://localhost:63342/FirstSample/lib/babylon.canvas2d.js:8687:66) at Text2D.RenderablePrim2D.updateInstanceDataPart (http://localhost:63342/FirstSample/lib/babylon.canvas2d.js:9337:29) Without new line symbol: new Text2D("AAABBB", settings) it still works Quote Link to comment Share on other sites More sharing options...
Nockawa Posted January 30, 2017 Share Posted January 30, 2017 @TMTH Hello, yes, there's indeed a new bug on the latest push, you can in the meantime counter it by inserting a space char before or after the \n, something like "AAA \nBBB" will work. We're going to solve the issue asap, thanks. Quote Link to comment Share on other sites More sharing options...
Nockawa Posted January 30, 2017 Share Posted January 30, 2017 @TMTH the bug is fixed, please hard refresh the PG (CLTR-F5), thanks @adam for the prompt fix 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.