summaryrefslogtreecommitdiff
path: root/de.jaseg.kimesh.plugin/plugins
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-10-24 15:58:25 +0200
committerjaseg <git@jaseg.de>2023-10-24 15:58:25 +0200
commitf5c40093ff3a2b550ab6f273049d169046421a33 (patch)
tree74a9c55d8b132da1b28bf7f3f206e2cb13c56604 /de.jaseg.kimesh.plugin/plugins
parent459b09764549f6cfa8dcb490857101d84864e57d (diff)
downloadkimesh-f5c40093ff3a2b550ab6f273049d169046421a33.tar.gz
kimesh-f5c40093ff3a2b550ab6f273049d169046421a33.tar.bz2
kimesh-f5c40093ff3a2b550ab6f273049d169046421a33.zip
Fix bug when running without stored settings
Diffstat (limited to 'de.jaseg.kimesh.plugin/plugins')
-rw-r--r--de.jaseg.kimesh.plugin/plugins/mesh_dialog.py2
1 files changed, 1 insertions, 1 deletions
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)