diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-04-18 13:18:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-18 13:18:51 +0200 |
commit | 52601d42c4cfaa2a10f843bcc9946d8ff01ddbff (patch) | |
tree | bbedc52a1442c549475a630f966bcd45e5f8db29 | |
parent | 952f7d71aa2cbc9c2a0e3387de29345625cff818 (diff) | |
parent | d77ffa3e97932b17e6b3da5b776b0d0760f3ce6e (diff) |
Merge pull request #18247 from volzhs/path-color
Ability to change path color with self modulate
-rw-r--r-- | scene/2d/path_2d.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/2d/path_2d.cpp b/scene/2d/path_2d.cpp index 7b77b34b26..7377591f7d 100644 --- a/scene/2d/path_2d.cpp +++ b/scene/2d/path_2d.cpp @@ -96,7 +96,7 @@ void Path2D::_notification(int p_what) { #else const float line_width = 2; #endif - const Color color = Color(0.5, 0.6, 1.0, 0.7); + const Color color = Color(1.0, 1.0, 1.0, 1.0); for (int i = 0; i < curve->get_point_count(); i++) { @@ -151,6 +151,7 @@ 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)); } ///////////////////////////////////////////////////////////////////////////////// |