Fix bug when running without stored settings

This commit is contained in:
jaseg 2023-10-24 15:58:25 +02:00
parent 459b097645
commit f5c40093ff

View file

@ -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)