Skip to content

Commit

Permalink
set bitmapResolution for png,bmp costumes to always be 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
aspizu committed Jan 13, 2025
1 parent b7ed74c commit 851d8fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/codegen/sb3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,9 @@ where T: Write + Seek
write!(self, "{{")?;
write!(self, r#""name":{}"#, json!(name))?;
write!(self, r#","assetId":"{hash}""#)?;
if extension == "png" || extension == "bmp" {
write!(self, r#","bitmapResolution":1"#)?;
}
write!(self, r#","dataFormat":"{extension}""#)?;
write!(self, r#","md5ext":"{hash}.{extension}""#)?;
write!(self, "}}") // costume
Expand Down

0 comments on commit 851d8fe

Please sign in to comment.