auto_size 仅在显式开启时按模型能力拦截
validate_generation_options 中 auto_size 的 H25 校验由 is_some() 改为 == Some(true) auto_size: false 不再被当作启用,与 quad、smart_low_poly、generate_parts 的取值语义保持一致
This commit is contained in:
@@ -68,7 +68,7 @@ pub(crate) fn validate_generation_options(
|
||||
));
|
||||
}
|
||||
|
||||
if options.auto_size.is_some() && matches!(family, ModelFamily::H25) {
|
||||
if options.auto_size == Some(true) && matches!(family, ModelFamily::H25) {
|
||||
return Err(invalid(
|
||||
Some(TripoField::AutoSize),
|
||||
TripoValidationReason::InvalidCombination,
|
||||
|
||||
Reference in New Issue
Block a user