Description

A licensee has reported that the Draw function in BatchedElements.cpp can set the OrthoZoomFactor (not a local variable) to 1.0f if Line.bScreenSpace is ever found to be false.

The line this can occur on
Engine\Source\Runtime\Engine\Private\BatchedElements.cpp Line #955

 OrthoZoomFactor = Line.bScreenSpace ? OrthoZoomFactor : 1.0f; 

The licensee proposes using a local variable instead for this loop so that this does not affect the global variable.

Regression?: No
This was present in 4.13 as well

Steps to Reproduce

Code Issue - N/A

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-42160 in the post.

1
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.134.144.154.164.205.1
Target Fix5.3
Fix Commit20592803
CreatedFeb 20, 2017
ResolvedFeb 6, 2023
UpdatedJun 23, 2023
View Jira Issue