ITADN

`current` is set to Window node after using OS window mode

#206Closedheppocogne 创建于 2024-09-29
Bug🐞
H
heppocognecommented
**Describe the bug** Maybe related to #171. `current` variable of interactive shell is set to Window node when using OS window mode. When this problem happens, the correct `current` node will be unavailable until current scene is switched, reloaded or the game is restarted. (note) I inserted `print_debug` and found that `func _get_valid_root_nodes() -> Array` in [modules/variable_tracker/module.gd](https://github.com/Ark2000/PankuConsole/blob/69fdd0d39fc3e8b2125e7d0b25fa4d3e1765c6b7/addons/panku_console/modules/variable_tracker/module.gd) returned: `[@Window@36:<Window#172905991182>, Main:<Node3D#74255959313>, ...]` **To Reproduce** Steps to reproduce the behavior: 1. launch game 2. open PankuConsole 3. open any tools in OS window mode 4. `current` node is set to Window node **Expected behavior** `current` should be same as `current_scene` of game **Screenshots** ![bug_1](https://github.com/user-attachments/assets/a194cbd5-ecb2-4a4c-a3c1-568cb01d703a) ![bug_2](https://github.com/user-attachments/assets/be0d5f23-eaa3-434e-8848-45f7cb4ccda6) **Desktop (please complete the following information):** - OS: Windows 11 Pro - Version: 23H2 **Additional context**
关闭于 2024-12-08 1 条评论