Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't drag node to Inspector panel export var field if there is an error in code. #102426

Open
famgam opened this issue Feb 4, 2025 · 0 comments

Comments

@famgam
Copy link

famgam commented Feb 4, 2025

Tested versions

Reproducible in 4.3 Stable

System information

Godot v4.3.stable - Linux Mint 21.3 (Virginia) - X11 - GLES3 (Compatibility) - Mesa Intel(R) Graphics (RPL-U) - 13th Gen Intel(R) Core(TM) i7-1355U (12 Threads)

Issue description

After clicking "run" if there is an error in code, dragging & dropping nodes into the Inspector panel fails.

Current results:
When dragging the node to the export var field, the focus in the Inspector panel is immediately set to the selected node.

Expected results:
When dragging the node to the export var field, the focus in the Inspector panel remains on the previously selected node. (which is standard behavior)

Screen recording of this behavior.

export-var-drag-drop.mp4

Steps to reproduce

  1. Create node 1.
  2. Add a script to the node.
  3. Add @export var to the script with type node.
  4. In _ready() add a simple property change on the var.
  5. Create node 2.
  6. Select node 1.
  7. Drag node 2 into export var field in Inspector window.8.
  8. Run (F5) (this verifies your code works)
  9. Remove the script from node 1
  10. Add the script back to node 1
  11. Run (F5) - you will get an error, because the export var is empty.
  12. Select node 1
  13. Attempt to drag node 2 into the Inspector. (it will fail, due to change of focus in the Inspector field)

Minimal reproduction project (MRP)

test-export-var-error.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants