if we really are in sculpt mode context since the active object may be in sculpt mode while cursor is in the 2d paint editor.
if we really are in sculpt mode context since the active object may be in sculpt mode while cursor is in the 2d paint editor.