Merge PR #1280 and expose constraint value visibility

This commit is contained in:
Hakan Seven committed 2026-09-15 11:55:05 +03:00
commit dfe8b77cca
7 files changed
+70 -9

No files matched your search

+5
View File
@@ -85,6 +85,11 @@ pub enum PropValue {
},
/// The trailing "+ Add parameter" row in the Parameters section.
ParamAddRow,
/// The Parameters section's leading header row (no-selection page only):
/// a global on/off toggle for whether any constraint pill in the
/// viewport shows its driven value/parameter-name text. Mirrors
/// `App::show_constraint_values`.
ParamsVisibilityToggle(bool),
}
/// A single property row in the Properties panel.
+4 -2
View File
@@ -754,7 +754,8 @@ impl Scene {
| PropValue::FieldLwVaries { .. }
| PropValue::EntityLink { .. }
| PropValue::ParamRow { .. }
| PropValue::ParamAddRow => continue,
| PropValue::ParamAddRow
| PropValue::ParamsVisibilityToggle(_) => continue,
}
};
out.push(choice(prop.field, prop.label, editor));
@@ -891,7 +892,8 @@ impl Scene {
| PropValue::FieldLwVaries { .. }
| PropValue::EntityLink { .. }
| PropValue::ParamRow { .. }
| PropValue::ParamAddRow => return None,
| PropValue::ParamAddRow
| PropValue::ParamsVisibilityToggle(_) => return None,
})
}
}