Skip to content

Commit

Permalink
[FIX] Texturing of objects with 3D models not always displaying corre…
Browse files Browse the repository at this point in the history
…ctly
  • Loading branch information
Wano-k committed Oct 6, 2023
1 parent 397e31a commit efc8b29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Core/MapObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,7 @@ class MapObject {
if (this.currentStateInstance.graphicKind === ElementMapKind.Object3D) {
objectDatas = Datas.SpecialElements.objects[this
.currentStateInstance.graphicID];
material = Scene.Map.current.texturesObjects3D[objectDatas
.pictureID];
material = Scene.Map.current.texturesObjects3D[objectDatas.id];
} else {
material = this.currentStateInstance.graphicID === 0 ? Scene.Map
.current.textureTileset : Scene.Map.current
Expand Down

0 comments on commit efc8b29

Please sign in to comment.