def _glyph_changed(self, old, new):
        # Set the glyph's module attribute -- this is important!
        new.module = self
        # Setup actors inputs.
        actor = self.actor
        if actor is not None:
            actor.inputs = [new]
        self._change_components(old, new)
dataset/ETHPy150Open enthought/mayavi/mayavi/modules/tensor_glyph.py/TensorGlyph._glyph_changed/original