From 0d549a46d40c62e5fb5910cb3486a503cc191f9f Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 27 Dec 2024 16:48:41 -0800 Subject: [PATCH] TEMP: validation: force model upload to prevent model validation bait and switch --- validation/src/validator.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/validation/src/validator.rs b/validation/src/validator.rs index 1b59afe..2bd4a3c 100644 --- a/validation/src/validator.rs +++ b/validation/src/validator.rs @@ -164,7 +164,7 @@ impl Validator{ .await?; // make the replacements - let mut modified=false; + let mut modified=true; for &script_ref in &script_refs{ if let Some(script)=dom.get_by_ref_mut(script_ref){ if let Some(rbx_dom_weak::types::Variant::String(source))=script.properties.get_mut("Source"){ @@ -188,6 +188,8 @@ impl Validator{ } } + println!("[Validator] Forcing model upload! modified=true"); + // if the model was validated, the submission must be changed to use the modified model if modified{ // serialize model (slow!)