diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-27 08:55:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 08:55:22 +0200 |
commit | 2c91b7f27a7bb140df9601d6d3bc4fc5f533b43b (patch) | |
tree | 9e82cfcd799c6b5a16aac46eae116a1dd55c4f40 | |
parent | 5f645e5d84b73fbf7ff83137d3d0a5f7408c3ba6 (diff) | |
parent | aaf9b7c5bbb69180b8ae2c4d9068923834bbad98 (diff) |
Merge pull request #36035 from Xrayez/path2d-fix-self-modulate
Do not override Path2D.self_modulate property
-rw-r--r-- | scene/2d/path_2d.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/2d/path_2d.cpp b/scene/2d/path_2d.cpp index ed8481db4a..149d5c6b0d 100644 --- a/scene/2d/path_2d.cpp +++ b/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)); } ///////////////////////////////////////////////////////////////////////////////// |