trsh Posted September 15, 2016 Share Posted September 15, 2016 https://jsfiddle.net/mvyu5b8j/ Check console. Wrong bounds Same with 4v seems work fine -> https://jsfiddle.net/atrvo643/ I can't migrate now, so maybe someone (life saver :)) can recommend a patch? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 15, 2016 Share Posted September 15, 2016 Changes in bounds were really big. In this case, you have to update whole stage and not just "sp", otherwise it wont work: "stage.updateTransform()" . v4 knows that it has to update all parents of "sp" before it gets bounds, and updateTransform() isnt required there. Quote Link to comment Share on other sites More sharing options...
trsh Posted September 15, 2016 Author Share Posted September 15, 2016 Just now, ivan.popelyshev said: Changes in bounds were really big. In this case, you have to update whole stage and not just "sp", otherwise it wont work: "stage.updateTransform()" . v4 knows that it has to update all parents of "sp" before it gets bounds, and updateTransform() isnt required there. But that gives me: "VM69 pixi.min.js:3 Uncaught TypeError: Cannot read property 'worldTransform' of null". I cant update transform for stage :(( Quote Link to comment Share on other sites More sharing options...
trsh Posted September 15, 2016 Author Share Posted September 15, 2016 51 minutes ago, ivan.popelyshev said: Changes in bounds were really big. In this case, you have to update whole stage and not just "sp", otherwise it wont work: "stage.updateTransform()" . v4 knows that it has to update all parents of "sp" before it gets bounds, and updateTransform() isnt required there. I think there some another problem, that's Container related Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 15, 2016 Share Posted September 15, 2016 oh riiight. you need to assign temporary parent first, how renderer is doing it. may be update the container? 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.