Add some code changes/fixes proposed by Coverity and Clang Tidy
This commit is contained in:
@ -85,6 +85,7 @@ void VisualServerViewport::_draw_viewport(Viewport *p_viewport, ARVRInterface::E
|
||||
if (!p_viewport->hide_canvas && !p_viewport->disable_environment && VSG::scene->scenario_owner.owns(p_viewport->scenario)) {
|
||||
|
||||
VisualServerScene::Scenario *scenario = VSG::scene->scenario_owner.get(p_viewport->scenario);
|
||||
ERR_FAIL_COND(!scenario);
|
||||
if (VSG::scene_render->is_environment(scenario->environment)) {
|
||||
scenario_draw_canvas_bg = VSG::scene_render->environment_get_background(scenario->environment) == VS::ENV_BG_CANVAS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user