Setting a negative active layer index was possible, causing a crash when adding new layers (for example). Clamp the active index when assigning from RNA.
Setting a negative active layer index was possible, causing a crash when adding new layers (for example). Clamp the active index when assigning from RNA.