From f5c40093ff3a2b550ab6f273049d169046421a33 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 24 Oct 2023 15:58:25 +0200 Subject: Fix bug when running without stored settings --- de.jaseg.kimesh.plugin/plugins/mesh_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'de.jaseg.kimesh.plugin') diff --git a/de.jaseg.kimesh.plugin/plugins/mesh_dialog.py b/de.jaseg.kimesh.plugin/plugins/mesh_dialog.py index 4ec8763..4bcbc38 100644 --- a/de.jaseg.kimesh.plugin/plugins/mesh_dialog.py +++ b/de.jaseg.kimesh.plugin/plugins/mesh_dialog.py @@ -101,7 +101,7 @@ class MeshPluginMainDialog(mesh_plugin_dialog.MainDialog): for i, fp in enumerate(self.fps): ref = fp.GetReference() self.m_anchorChoice.Append(ref) - if (settings and ref == settings.anchor) or (not settings and ':MeshAnchor' in fp.GetFPID()): + if (settings and ref == settings.anchor) or (not settings and 'MeshAnchor' in str(fp.GetFPID().GetLibItemName())): self.m_anchorChoice.SetSelection(i) -- cgit