Skip to content

Commit

Permalink
Fixed a bug that caused the editor to crash if the user clicked in th…
Browse files Browse the repository at this point in the history
…e viewport and doesn't have a game root set.
  • Loading branch information
Sage-of-Mirrors committed Dec 22, 2020
1 parent 037229b commit 3b3316e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/Editor/Entities/VisibleDOMNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public bool Raycast(FRay ray, out float closestDistance)
break;
}
}
else
else if (m_objRender != null)
{
if (m_objRender.FaceCullingEnabled && m_objRender.GetAABB().Contains(localRay.Origin))
{
Expand Down

0 comments on commit 3b3316e

Please sign in to comment.