def resetToolReach(self):
        """
        Resets reticleOffset or tooldistance in right-click mode.
        """
        if self.editor.mainViewport.mouseMovesCamera and not self.editor.longDistanceMode:
            self.resetToolDistance()
        else:
            self.reticleOffset = self.offsetMax()
        return True

        Resets reticleOffset or tooldistance in right-click mode.
        
editortools/brush.py