Skip to content

Fix WorldEnvironment missing camera warning bug

Peter Folkins requested to merge github/fork/flashyincceo/camera-warning into master

Fixes #17943 (closed)

Does anyone understand why this code is checking to make sure the node isn't being edited?

It seems to be preventing the camera from assigning itself to the viewport, which causes a warning to be displayed (with no other side effects) as reported in #17943 (closed).

The configuration warning is in scene/3d/scenario_fx.cpp, where get_viewport()->get_camera() fails to return a camera.

Seeing as how make_current() calls get_viewport()->_camera_set(this), removing the failing check silences the warning.

Merge request reports