Skip to content

Commit

Permalink
fixed problem with transforms when importing/exporting from multiple …
Browse files Browse the repository at this point in the history
…sequential samples
  • Loading branch information
olbris committed Mar 29, 2024
1 parent 4b103b1 commit 995691d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// 9.19

Horta:
* Added text boxes for adjusting color sliders; click the '#' button
* Added text boxes for adjusting color sliders; click the '#' button
* Fixed bug: if importing/exporting SWCs from multiple samples, later files now use correct transform
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public class NeuronManager implements DomainObjectSelectionSupport {
};

private final TiledMicroscopeDomainMgr tmDomainMgr;
private SWCDataConverter swcDataConverter;

private TmNeuronMetadata currentNeuron;
private List<TmNeuronMetadata> currentFilteredNeuronList;
Expand Down Expand Up @@ -183,12 +182,10 @@ public synchronized void clear() {
}

public SWCDataConverter getSwcDataConverter() {
if (swcDataConverter == null) {
swcDataConverter = new SWCDataConverter();
swcDataConverter.setSWCExchanger(new MatrixDrivenSWCExchanger(
TmModelManager.getInstance().getMicronToVoxMatrix(),
TmModelManager.getInstance().getVoxToMicronMatrix()));
}
SWCDataConverter swcDataConverter = new SWCDataConverter();
swcDataConverter.setSWCExchanger(new MatrixDrivenSWCExchanger(
TmModelManager.getInstance().getMicronToVoxMatrix(),
TmModelManager.getInstance().getVoxToMicronMatrix()));
return swcDataConverter;
}

Expand Down

0 comments on commit 995691d

Please sign in to comment.