Skip to content

Commit

Permalink
Fixed scene background method bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ffrank913 committed Jun 17, 2024
1 parent e8ed484 commit fb1411a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene/Scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class DIVEScene extends Scene {
}

public GetBackground(): string {
return `#${(this.background as Color).getHexString()}`;
return `#${this.background ? (this.background as Color).getHexString() : '000000'}`;
}

public SetBackground(color: ColorRepresentation): void {
Expand Down

0 comments on commit fb1411a

Please sign in to comment.