I have a node that draws. It was drawing all right while the node was added into the tree manually.
Structure (previous and present):
Parent
Logic(that instantiate the node now)
Node-that-draws
But now I need to add it this way:
var map = UI_Map.instantiate()
map.position = Vector2(0, 0)
get_parent().add_child(map)
map.init()
map.redraw()
The node has
func redraw():
queue_redraw()
func _draw():
The debugger shows that redraw() is called but the breakpoint at _draw() never works.
Where should I look for a problem?