Bläddra i källkod

Fixes setting top_level not updating the global position

Gilles Roudière 4 år sedan
förälder
incheckning
131a7b58c8
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      scene/main/canvas_item.cpp

+ 2 - 0
scene/main/canvas_item.cpp

@@ -686,6 +686,8 @@ void CanvasItem::set_as_top_level(bool p_top_level) {
 	_exit_canvas();
 	top_level = p_top_level;
 	_enter_canvas();
+
+	_notify_transform();
 }
 
 bool CanvasItem::is_set_as_top_level() const {