Explorar el Código

Merge pull request #36035 from Xrayez/path2d-fix-self-modulate

Do not override Path2D.self_modulate property
Rémi Verschelde hace 5 años
padre
commit
2c91b7f27a
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      scene/2d/path_2d.cpp

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

@@ -102,7 +102,7 @@ void Path2D::_notification(int p_what) {
 #else
 		const float line_width = 2;
 #endif
-		const Color color = Color(1.0, 1.0, 1.0, 1.0);
+		const Color color = Color(0.5, 0.6, 1.0, 0.7);
 
 		for (int i = 0; i < curve->get_point_count(); i++) {
 
@@ -162,7 +162,6 @@ void Path2D::_bind_methods() {
 Path2D::Path2D() {
 
 	set_curve(Ref<Curve2D>(memnew(Curve2D))); //create one by default
-	set_self_modulate(Color(0.5, 0.6, 1.0, 0.7));
 }
 
 /////////////////////////////////////////////////////////////////////////////////