Skip to content

Commit 0f45d78

Browse files
committed
Remove pivot widget from Transform node properties
1 parent cbff6ba commit 0f45d78

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

editor/src/messages/portfolio/document/node_graph/node_properties.rs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,25 +1590,7 @@ pub fn logic_operator_properties(document_node: &DocumentNode, node_id: NodeId,
15901590
}
15911591

15921592
pub fn transform_properties(document_node: &DocumentNode, node_id: NodeId, _context: &mut NodePropertiesContext) -> Vec<LayoutGroup> {
1593-
let translation_assist = |widgets: &mut Vec<WidgetHolder>| {
1594-
let pivot_index = 5;
1595-
if let NodeInput::Value {
1596-
tagged_value: TaggedValue::DVec2(pivot),
1597-
exposed: false,
1598-
} = document_node.inputs[pivot_index]
1599-
{
1600-
widgets.push(Separator::new(SeparatorType::Unrelated).widget_holder());
1601-
widgets.push(
1602-
PivotInput::new(pivot.into())
1603-
.on_update(update_value(|pivot: &PivotInput| TaggedValue::DVec2(Into::<Option<DVec2>>::into(pivot.position).unwrap()), node_id, 5))
1604-
.on_commit(commit_value)
1605-
.widget_holder(),
1606-
);
1607-
} else {
1608-
add_blank_assist(widgets);
1609-
}
1610-
};
1611-
let translation = vec2_widget(document_node, node_id, 1, "Translation", "X", "Y", " px", None, translation_assist);
1593+
let translation = vec2_widget(document_node, node_id, 1, "Translation", "X", "Y", " px", None, add_blank_assist);
16121594

16131595
let rotation = {
16141596
let index = 2;

0 commit comments

Comments
 (0)