def resetToolDistance(self):
        """
        Resets the distance of the brush in right-click mode, appropriate to the size of the brush.
        """
        distance = 6 + max(self.getBrushSize()) * 1.25
        self.editor.cameraToolDistance = distance

        Resets the distance of the brush in right-click mode, appropriate to the size of the brush.
        
editortools/brush.py