LogicalError / realtime-CSG-for-unity

Realtime-CSG, CSG level editor for Unity
https://realtimecsg.com
MIT License
732 stars 76 forks source link

Bottom bar cannot be clicked on upon popping out the tool window #366

Closed butterfli3s closed 1 year ago

butterfli3s commented 2 years ago

OS: Windows 11 22H2 RCSG version: Git https://github.com/LogicalError/realtime-CSG-for-unity/commit/a3ccdb6d13be59bd7f9a31dfebfd7cd47d3f872c Unity version: Reproduced on 2021.3.4f1, 2021.3.5f1, 2022.1.6f1

Issue: When the edit modes window is popped out into dockable window, the bottom bar in the scene cannot be clicked on. Upon bringing it back into the scene view the bottom bar becomes clickable again.

Example (showcased on Unity 2022.1.6f1) Unity_792Dx3mg0V

nukeandbeans commented 2 years ago

Changing line 81 of RealtimeCSG/Plugins/Editor/Scripts/Control/Managers/SceneViewEventHandler.cs from

SceneViewBottomBarGUI.ShowGUI( sceneView );

to

SceneViewBottomBarGUI.ShowGUI( sceneView, false );

fixes this bug. I'm curious as to when this change was reverted, as the fix existed previously.

Misread the issue, and I now see what you mean.

The correct fix is to comment out

if( Event.current.type == EventType.Repaint )

at line 79, under TooltipUtility.InitTooltip( sceneView );

butterfli3s commented 2 years ago

Been discussing this issue with Kerfuffles on Discord and I already implemented said fix in my RCSG build; that fixes it for me.