forked from StudioInfinity/dyna3
Improve naming of constraint subjects
This commit is contained in:
parent
da008fd090
commit
ed1890bffc
3 changed files with 16 additions and 16 deletions
|
@ -154,10 +154,10 @@ pub fn Outline() -> View {
|
|||
let c_state = use_context::<AppState>();
|
||||
let assembly = &c_state.assembly;
|
||||
let cst = assembly.constraints.with(|csts| csts[c_key].clone());
|
||||
let other_arg = if cst.args.0 == key {
|
||||
cst.args.1
|
||||
let other_arg = if cst.subjects.0 == key {
|
||||
cst.subjects.1
|
||||
} else {
|
||||
cst.args.0
|
||||
cst.subjects.0
|
||||
};
|
||||
let other_arg_label = assembly.elements.with(|elts| elts[other_arg].label.clone());
|
||||
view! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue