Explorar el Código

make path update when curve changes, fixes #3144

Juan Linietsky hace 9 años
padre
commit
5b088b41b3
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      scene/2d/path_2d.cpp

+ 2 - 0
scene/2d/path_2d.cpp

@@ -74,6 +74,8 @@ void Path2D::set_curve(const Ref<Curve2D>& p_curve) {
 		curve->connect("changed",this,"_curve_changed");
 	}
 
+	_curve_changed();
+
 }
 
 Ref<Curve2D> Path2D::get_curve() const{