Skip to content

Commit af5df72

Browse files
committed
editor: Don't show double bounding boxes
1 parent 0175e20 commit af5df72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

[editor]/editor_main/client/gridlines.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,8 @@ function renderHoverOverGridLines()
440440

441441
-- Draw animated bounding box
442442
if highlightedElement and isElement(highlightedElement) then
443+
-- Don't draw it if we are also showing the selected bounding box
444+
if attachedToElement == highlightedElement and exports["editor_gui"]:sx_getOptionData("enableBox") then
443445
return
444446
end
445447
local box = getElementBoundingBoxCorners(highlightedElement)

0 commit comments

Comments
 (0)