Draw Node2D on editor bug?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AiTechEye

So i testing my map generator in the editor using the tool keyword for fast test results instead of restarting the game and mess. but godot draws the image on the editor too, this is annoying.

Is it a bug / can i avoid this?

(godot 3.1.2 stable)

Oops, very rare, draw 2 times, once on the editor’s screen and once on the editor’s menu. Are you drawing in the function _draw () or its signal draw? Does the script inherit from node2D or similar? It seems as if you want to make a custom panel to the editor. These days the stable version 3.2 of godot came out, download it and try if the same thing happens.

Also below in Output there is a red dot that indicates that you have an error, verify it.

estebanmolca | 2020-01-31 15:34

I created a new project in 3.2, made a Node2D & script, added the scene to autoload.

extends Node2D

func _draw():

still happens, seems like autoload is causing it

AiTechEye | 2020-01-31 19:48