FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.48k stars 339 forks source link

Fix creating a MenuItem in editor #606

Closed Dark42ed closed 4 months ago

Dark42ed commented 4 months ago

Attempting to create a MenuItem in the UI editor will crash the editor (since the MenuItemBuilder.content is none). This PR only links the content if the content exists.

Edit: Seems to effect stable 0.33.1 too.