FyroxEngine / Fyrox

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

Attach scene's content to a special root node when working with a scene in the editor #460

Closed mrDIMAS closed 1 year ago

mrDIMAS commented 1 year ago

This PR fixes annoying problem, that prevents you from moving/scaling/rotating root node of your scene. This happens because editor's camera was also attached to the root node. In this change, actual scene content is attached to a special root node when editing the scene and editor's camera is attached to "fake" scene root.