Repository navigation
Fix the in-game editor crashing on a custom object of a missing extension - #9417
Merged
Merged
Conversation
…nstalling an asset When an asset holds several variants of the same object type (like a dialog with a green and a red button) and they were renamed because their names already existed in the project, every child of this type got the first renamed variant.
…sion The placeholder of an unknown object type is a 3D object, which reads the dimensions in the content of the object data. Custom objects have no content, so a child of a missing extension (like the buttons of a dialog when PanelSpriteButton is not installed) made the editor crash. The placeholder now uses an empty content when there is none, and gets the default size.
…o claude/dreamy-mendel-iw5mn6
Contributor
⏱️ Game engine benchmarks: ✅ no significant change on the 39 benchmarksAll the 39 benchmarks and how they are measured
✅ The counters (draw calls, objects count and final state) of the 15 scene benchmarks run on both versions are unchanged. Comparing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the in-game editor, an object whose type is not found is replaced by a placeholder (
UnknownRuntimeObject). This placeholder is a 3D object, andRuntimeObject3DreadsobjectData.content.width/height/depth. The data of a custom object has nocontent, so a custom object of a missing extension made the editor crash instead of showing the placeholder.This happened when adding an Info dialog of the Dialogs extension in a project without the PanelSpriteButton extension (which GDevelopApp/GDevelop-extensions#2377 now declares as required):
The placeholder now gives
RuntimeObject3Dan emptycontentwhen the object data has none, in its constructor and inupdateFromObjectData(hot-reload). The dimensions are optional, so it gets the default size (100).Tests
tscreports errors for the whole three.js namespace (types/global-three), onmastertoo, so the full check could not run cleanly here.Generated by Claude Code