diff options
author | jaseg <git@jaseg.de> | 2023-10-24 15:58:25 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-10-24 15:58:25 +0200 |
commit | f5c40093ff3a2b550ab6f273049d169046421a33 (patch) | |
tree | 74a9c55d8b132da1b28bf7f3f206e2cb13c56604 | |
parent | 459b09764549f6cfa8dcb490857101d84864e57d (diff) | |
download | kimesh-f5c40093ff3a2b550ab6f273049d169046421a33.tar.gz kimesh-f5c40093ff3a2b550ab6f273049d169046421a33.tar.bz2 kimesh-f5c40093ff3a2b550ab6f273049d169046421a33.zip |
Fix bug when running without stored settings
-rw-r--r-- | de.jaseg.kimesh.plugin/plugins/mesh_dialog.py | 2 |
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) |