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

Scene recognizes @tool only on open #10168

Open
GniLudio opened this issue Oct 29, 2024 · 0 comments
Open

Scene recognizes @tool only on open #10168

GniLudio opened this issue Oct 29, 2024 · 0 comments
Labels

Comments

@GniLudio
Copy link

GniLudio commented Oct 29, 2024

Godot version: v4.3.stable.official [77dcf97d8]

Issue description:
When adding (or removing) the @tool-tag from a script, opened scenes don't detect the change automatically.
Only when closing and reopening a scene, the scene correctly detects the added/removed @tool.

Documentation Page: Running code in the editor

Steps:

  1. Create a scene
  2. Add the script to the scene
    • Add @tool to the start of the script
    • Add print("Hello") to the _process function
  3. Switch back to the scene -> no 'Hello' appears in the console
  4. Close and reopen the scene -> 'Hello' appears in the console
@tool
extends Node2D

func _process(delta: float) -> void:
	print("Hello")
@GniLudio GniLudio added the bug label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant