diff --git a/zxlive/editor_base_panel.py b/zxlive/editor_base_panel.py index 0336d09..1a2df29 100644 --- a/zxlive/editor_base_panel.py +++ b/zxlive/editor_base_panel.py @@ -347,8 +347,9 @@ def toolbar_select_node_edge(parent: EditorBasePanel) -> Iterator[ToolbarSection snap = QToolButton(parent) snap.setCheckable(True) snap.setChecked(True) - snap.setText("Vertex-edge snap") - snap.setToolTip("Snap newly added vertex to the edge beneath it (f)") + #snap.setText("Vertex-edge snap") + snap.setIcon(QIcon(get_data("icons/vertex-snap-to-edge.svg"))) + snap.setToolTip("Snap newly added vertices to the edge beneath them (f)") snap.setShortcut("f") snap.clicked.connect(lambda: parent._snap_vertex_edge_clicked()) yield ToolbarSection(snap) diff --git a/zxlive/eitem.py b/zxlive/eitem.py index a117ed8..ac86747 100644 --- a/zxlive/eitem.py +++ b/zxlive/eitem.py @@ -233,8 +233,6 @@ def __init__(self, item: Union[EItem, ET], property: EItem.Properties, self.e = None self._it = None self.scene: Optional[GraphScene] = None - #if refresh and property != VItem.Properties.Position: - # raise ValueError("Only position animations require refresh") if isinstance(item, EItem): self._it = item elif scene is None: diff --git a/zxlive/icons/vertex-snap-to-edge.svg b/zxlive/icons/vertex-snap-to-edge.svg new file mode 100644 index 0000000..2f0a30d --- /dev/null +++ b/zxlive/icons/vertex-snap-to-edge.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file