This commit is contained in:
2023-05-29 22:16:16 +02:00
parent a6c457788c
commit 1ad383448b
5 changed files with 23 additions and 8 deletions

View File

@@ -34,12 +34,12 @@ pub fn collect_clip(target: &mut HashMap<u32, Gd<Texture2D>>, clip: ImageClip) {
if sequence.data.flags & 0x1 != 1 {
godot_error!("Non-looping animated textures are not supported!")
}
let mut frame_duration = 15.0 / 60.0;
let mut frame_duration = 1.0 / 15.0;
for meta in attributes {
match meta {
ImageClipSubChunk::Time(time) => {
frame_duration = time.frame_rate as f64 / 60.0;
frame_duration = 1.0 / time.frame_rate as f64;
}
x => godot_error!("TODO: {:?}", x),
}

View File

@@ -163,6 +163,7 @@ impl MaterialUvInfo {
.scaled(size),
origin: pos,
}
.affine_inverse()
.to_variant(),
));
}