Skip to content

Commit

Permalink
blender interface: correctly add MeshNeurons to collection
Browse files Browse the repository at this point in the history
  • Loading branch information
schlegelp committed Dec 22, 2020
1 parent 32aa702 commit e1573be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions navis/interfaces/blender.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def add(self, x, neurites=True, soma=True, connectors=True, redraw=False,
If integer < 1, will downsample neurites upon import.
Preserves branch point/roots. TreeNeurons only.
collection : str, optional
Only for Blender 2.8: add object(s) to given collection.
Only for Blender >2.8: add object(s) to given collection.
If collection does not exist, will be created.
Examples
Expand Down Expand Up @@ -362,7 +362,7 @@ def _create_neuron(self, x, neurites=True, soma=True, connectors=True,
if soma and not isinstance(x.soma, type(None)):
self._create_soma(x, mat, collection=collection)
elif isinstance(x, core.MeshNeuron):
self._create_mesh(x, mat)
self._create_mesh(x, mat, collection=collection)
else:
raise TypeError(f'Expected Mesh/TreeNeuron, got "{type(x)}"')

Expand Down

0 comments on commit e1573be

Please sign in to comment.