ID 430177 - Crash when removing the last environment item via python

Follow

Problem summary
Crash when removing the last environment item via python

Customer reported version
modo.14.0v1

Customer reported platform
windows10

Steps to reproduce
1) Open Modo.
2) Switch to the scripting layout.
3) Run the following script:
import modo
modo.Scene().removeItems('Environment')

Expected behaviour
Modo should not crash.

Actual behaviour
Modo crashes.

Workaround
Unknown.

Reproduced by support
This bug has been reproduced in:
14.0v1 - Windows 10, OSX 10.14.6

Unable to reproduce bug in:
13.2v1 - Windows 10, OSX 10.14.6

Earliest version tested
13.2v1 - Windows 10, OSX 10.14.6 - This issue doesn't appear in this version and has regressed

    We're sorry to hear that

    Please tell us why