def offsetMax(self):
        """
        Sets the Brush Offset (space between face the cursor is pointing at and center of brush.
        Called by toolSelected if updateBrushOffset is Checked in BrushOptions
        """
        brushSizeOffset = max(self.getBrushSize()) + 1
        return max(1, (0.5 * brushSizeOffset))

        Sets the Brush Offset (space between face the cursor is pointing at and center of brush.
        Called by toolSelected if updateBrushOffset is Checked in BrushOptions
        
editortools/brush.py