Skip to content
Permalink
Browse files

feat(imgui): fix scene view imgui: if SceneViewIMGUIUtils->convertWor…

…ldToScreen return None, return (-100, -100)
  • Loading branch information...
yyc-git committed May 24, 2019
1 parent 2c08c4b commit a6a1fddd16c197f34008456aea1b48c2bb051031
Showing with 1 addition and 9 deletions.
  1. +1 −9 src/core/utils/engine/job/loop/SceneViewIMGUIUtils.re
@@ -97,15 +97,7 @@ let _convertPosition =
)
|> Js.Nullable.toOption
) {
| None =>
WonderLog.Log.fatal(
WonderLog.Log.buildFatalMessage(
~description={j|_convertPosition|j},
~reason="convertWorldToScreen return undefined",
~solution={j||j},
~params={j||j},
),
)
| None => ((-100.), (-100.))
| Some((x, y)) =>
(x, y) |> _convertAnchorFromTopLeftToCenter((imageWidth, imageHeight))
};

0 comments on commit a6a1fdd

Please sign in to comment.
You can’t perform that action at this time.