From 0af4b7dab93bbbc7834c894436084a4e75d04301 Mon Sep 17 00:00:00 2001 From: yuni Date: Wed, 31 Jul 2024 06:43:11 +0200 Subject: [PATCH] add autogeneration warning to src/data/scenes.in --- build.rs | 2 ++ src/data/scenes.in | 2 ++ 2 files changed, 4 insertions(+) diff --git a/build.rs b/build.rs index c8671f8..eb08d67 100644 --- a/build.rs +++ b/build.rs @@ -21,6 +21,8 @@ fn main() -> std::io::Result<()> { let file = File::create("src/data/scenes.in"); if let Ok(mut file) = file { + write!(&file, "// THIS FILE IS AUTOGENERATED BY build.rs BASED ON DATA IN src/blender/scene_*.blend FILES!\n")?; + write!(&file, "// DO NOT MODIFY MANUALLY, CHANGES WILL BE OVERWRITTEN!\n")?; write!(&file, "[\n")?; extract_scene(&mut file, "test", "src/blender/scene_test.blend")?; extract_scene(&mut file, "workshop", "src/blender/scene_workshop.blend")?; diff --git a/src/data/scenes.in b/src/data/scenes.in index a347f2a..7ca84bf 100644 --- a/src/data/scenes.in +++ b/src/data/scenes.in @@ -1,3 +1,5 @@ +// THIS FILE IS AUTOGENERATED BY build.rs BASED ON DATA IN src/blender/scene_*.blend FILES! +// DO NOT MODIFY MANUALLY, CHANGES WILL BE OVERWRITTEN! [ ("test", "cruiser", [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]), ("workshop", "shippingcontainer", [0.0, 0.0, 0.0], [-0.026294278, 0.000376441, 0.014312184]),