Do not override Path2D.self_modulate property
Self-modulation was forcefully used for the curve drawing which can interfere with scripted drawing. The curve color is specified by the `draw_line()` method instead.
This commit is contained in:
parent
42f04cbc1a
commit
aaf9b7c5bb
@ -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++) {
|
||||
|
||||
@ -163,7 +163,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));
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user