Fix 3D custom objects CenterZ expression and condition (#6448)

This commit is contained in:
D8H
2024-03-13 14:07:24 +01:00
committed by GitHub
parent 90fa5ea8e8
commit be26e39eae
2 changed files with 2 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ namespace gdjs {
if (this._isUntransformedHitBoxesDirty) {
this._updateUntransformedHitBoxes();
}
return this._minZ;
return this._z + this._minZ;
}
/**

View File

@@ -80,7 +80,7 @@ namespace gdjs {
threeObject3D.visible = !this._object.hidden;
this._isContainerDirty = true;
this._isContainerDirty = false;
}
/**