-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fixes addControlAt #2540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes addControlAt #2540
Conversation
|
🖼️ Screenshot tests have failed. The purpose of these tests is to ensure that changes introduced in this PR don't break visual features. They are visual unit tests. 📄 Where to find the report:
✅ If you did mean to change things: ✨ If you are creating entirely new tests: Note; it is very important that the committed reference images are created on the build pipeline, locally created images are not reliable. Similarly tests will fail locally but you can look at the report to check they are "visually similar". See https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-screenshot-tests/README.md for more information Contact @richardTingle (aka richtea) for guidance if required |
|
Screenshots are failing mostly on PBR tests for some reason (and not with any noticeable differences). This is a change I would not expect screenshots to fail on. @richardTingle would you mind taking a look? |
|
Hmm, this does seem really weird. I'm at work currently but I'll take a look at it after that |
|
Ok, I understand the problem. I use mesa, libgl1 and Xvfb to do CPU openGL rendering. And the pipeline just grabs the most recent one, and the whole thing is very sensitive to exact implementations to be pixel identical. I think one of these has released a new version. What I need to do is create a docker container to effectively pin this so we can have a stable version. I'm going to do that now but are you blocked by this (there would be quicker ways to unblock you if needs be) |
|
I think this is potentially a breaking change. imo if not broken, it is better to not touch this, or if you really want to do this, we need to look into the engine to be sure there are no side effects |
Good point. That's a bummer because addControlAt is inefficient and the validation checks are different between the two methods, but I'm not willing to put in the extra effort for it. I'm going to close this. |
|
Probably no longer relevant but for the purposes of linking everything together: this is the screenshot test fix: #2542 |
This fixes
addControlAtin Spatial awkwardly repositioning the control to add after callingaddControlto do "bookkeeping".addControlnow delegates everything toaddControlAt.