Raw-rs: Fix naming convention of matrices (#2071)

Fix naming convention of matrices
This commit is contained in:
Elbert Ronnie
2024-10-25 19:09:07 +00:00
committed by GitHub
parent 442937c13f
commit 36fe9bf31b
47 changed files with 54 additions and 59 deletions
@@ -71,7 +71,7 @@ pub fn build_camera_data(_: TokenStream) -> TokenStream {
let mut values: Table = toml::from_str(&fs::read_to_string(model_path).unwrap()).unwrap();
if let Some(val) = values.get_mut("camera_to_xyz") {
if let Some(val) = values.get_mut("xyz_to_camera") {
*val = Value::Array(val.as_array().unwrap().iter().map(|x| Value::Integer((x.as_float().unwrap() * 10_000.) as i64)).collect());
}