Fix for texture jumping on world edit. Deterministic z-index
determination.