Skip to content

Commit 10bd9d9

Browse files
Merge branch '9866-sdkgraphicentitymodule-line-is-not-redrawn-when-only-xy-changes' into 'master'
Lines were incorrectly drawn if only one of their two points were changed See merge request codingame/game-engine!279
2 parents 0dbc5be + 19d1bf1 commit 10bd9d9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

engine/modules/entities/src/main/resources/view/entity-module/Line.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export default class Line extends Shape {
2222
changed.lineColor ||
2323
changed.lineAlpha ||
2424
changed.x2 ||
25-
changed.y2) {
25+
changed.y2 ||
26+
changed.x ||
27+
changed.y) {
2628
this.graphics.clear()
2729
this.graphics.lineStyle(state.lineWidth, state.lineColor, state.lineAlpha)
2830
this.graphics.moveTo(0, 0)

playground/misc/misc-3-release-notes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
The CodinGame SDK is regularly updated and improved. This document lets you know what changed in the latest releases.
44

5+
## Next release
6+
7+
### 🐞 Bug fix
8+
9+
- Lines were incorrectly drawn if only one of their two points were changed
10+
511
## 3.15.0
612

713
### 🎁 Features

0 commit comments

Comments
 (0)