* Render output: Effects and Check sections, Size presets panel and the Check tool chip * Render output: Sampling, Effects and Check editors as child rows under Output * fix: restrict legacy Output controls to test builds * fix: cover status controls and reveal Effects test targets * fix: include shared quality reviews in copied check reports * fix: remove the obsolete Effects GPU guard after Wear integration
This commit is contained in:
@@ -59,6 +59,7 @@ pub mod edit;
|
||||
pub mod features;
|
||||
pub mod inspect;
|
||||
pub mod render;
|
||||
pub mod render_ui;
|
||||
pub mod sheet;
|
||||
pub mod sketch_constraints;
|
||||
pub mod sketch_create;
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
//! Clipboard requests for the Render workspace; headless calls only echo validated text.
|
||||
use schemars::JsonSchema;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct CheckReport {
|
||||
/// Report text, bounded to 65536 UTF-8 bytes by the command handler.
|
||||
#[schemars(length(min = 1, max = 65536))]
|
||||
pub text: String,
|
||||
}
|
||||
@@ -104,7 +104,7 @@ impl<'de> Deserialize<'de> for RenderSelect {
|
||||
}
|
||||
let request = Request::deserialize(d)?;
|
||||
let identified = matches!(request.kind.as_str(), "light" | "shot");
|
||||
if !matches!(request.kind.as_str(), "nothing" | "environment" | "light" | "shot" | "output" | "wear")
|
||||
if !matches!(request.kind.as_str(), "nothing" | "environment" | "light" | "shot" | "output" | "wear" | "sampling" | "effects" | "check")
|
||||
|| identified != request.id.is_some()
|
||||
|| request.id.as_ref().is_some_and(|id| id.trim().is_empty() || id.len() > 1024)
|
||||
{
|
||||
@@ -124,7 +124,7 @@ impl JsonSchema for RenderSelect {
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"kind": {"type": "string", "enum": ["nothing", "environment", "output", "wear"]},
|
||||
"kind": {"type": "string", "enum": ["nothing", "environment", "output", "wear", "sampling", "effects", "check"]},
|
||||
"id": {"type": "null"}
|
||||
},
|
||||
"required": ["kind"],
|
||||
|
||||
Reference in New Issue
Block a user