Skip to content

Commit 0512f73

Browse files
committed
fix(SDK): fixed zIndex
1 parent 78881a3 commit 0512f73

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,13 @@ export class Entity {
134134
this.updateDisplay(state, changed, globalData, data, progress)
135135
Object.assign(this.currentState, state)
136136
this.container.visible = this.container._visible
137-
if (changed.children) {
137+
138+
if (changed.children != null || changed.zIndex != null) {
138139
globalData.mustResetTree = true
139-
if (typeof this.postUpdate === 'function') {
140+
}
141+
142+
if (changed.children && typeof this.postUpdate === 'function') {
140143
globalData.updatedBuffers.push(this)
141-
}
142144
}
143145
if (changed.mask) {
144146
globalData.maskUpdates[this.id] = state.mask

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+
## 4.4.1
6+
7+
### 🐞 Bug fix
8+
9+
- Fixed zIndex not getting updated
10+
511
## 4.4.0
612

713
### 🎁 Features

0 commit comments

Comments
 (0)