Skip to content
Snippets Groups Projects
Commit dcc9781b authored by David Sehnal's avatar David Sehnal
Browse files

mol-plugin: tweaked label in ModelFromTrajectory

parent 3fa42a69
No related branches found
No related tags found
No related merge requests found
...@@ -150,7 +150,7 @@ const ModelFromTrajectory = PluginStateTransform.BuiltIn({ ...@@ -150,7 +150,7 @@ const ModelFromTrajectory = PluginStateTransform.BuiltIn({
const model = a.data[params.modelIndex]; const model = a.data[params.modelIndex];
const props = a.data.length === 1 const props = a.data.length === 1
? { label: `${model.label}` } ? { label: `${model.label}` }
: { label: `${model.label}:${model.modelNum}`, description: `Model ${model.modelNum} of ${a.data.length}` }; : { label: `${model.label}:${model.modelNum}`, description: `Model ${params.modelIndex + 1} of ${a.data.length}` };
return new SO.Molecule.Model(model, props); return new SO.Molecule.Model(model, props);
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment