The logic behind Rib command

Logged: https://mcneel.myjetbrains.com/youtrack/issue/RH-57933