Ability to change path color with self modulate
Fix #18164
(cherry picked from commit d77ffa3e97
)
This commit is contained in:
parent
5e551a584e
commit
0b3b3de2cd
|
@ -92,7 +92,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++) {
|
||||
|
||||
|
@ -147,6 +147,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));
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue