IsVisible()/IsVisibleInEditor() should be a contribute to the logic in ShouldRender().

NOTE: This code was written during the UE3 life cycle.

Found in 4.22 CL#7053642

Steps to Reproduce

1. Open a 4.22 project.
2. Open USceneComponent.cpp at Engine\Source\Runtime\Engine\Private\Components\SceneComponent.cpp.
3. Go to line 2890 for ShouldRender() and line 2884 for IsVisibleEditor().

Result: ShouldRender() never checks against IsVisibleInEditor().

Expected: ShouldRender() checks against IsVisibleInEditor().

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-84942 in the post.

Login to Vote

Affects Versions4.22
Target Fix4.26
CreatedNov 22, 2019
UpdatedFeb 27, 2020