-
-
Notifications
You must be signed in to change notification settings - Fork 23.8k
Closed
Description
Godot 3.0.6
Godot 3.1 beta 2
I made a simple tool script which uses _draw() to have custom visuals. But I noticed that once I finished writing it and setting it up, it was still not running in the scene. Only saving, closing and re-opening the scene made it run.
The same happens if you add a tool script to a node, this script won't run until you reload the scene, even if existing instances of it are running already.
Reproduction project:
ToolScriptDoesntRunYet.zip
- Open the project, see the main scene has one working node with custom
tooldraw (usingcustom.gd) - Create another
Node2D - Put another
custom.gdscript on it: notice it doesn't work - Save the scene, close it, and reopen it: notice it works now
girng, Chaosus, Jummit and rzuf79