Skip to content

Commit

Permalink
change: adjust camera hook heuristics
Browse files Browse the repository at this point in the history
Closes: #449
  • Loading branch information
bdunderscore committed Oct 13, 2024
1 parent d548ef5 commit e1da740
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Editor/PreviewSystem/ProxyManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ private static bool ShouldHookCamera(Camera cam)
{
if (cam.name == "TempCamera" && cam.targetTexture?.name == "ThumbnailCapture") return true;
if (cam.transform.parent == null) return true;
if (cam.targetTexture == null) return true;

return false;
}
Expand Down

0 comments on commit e1da740

Please sign in to comment.