In `retrieve_editable_drawings` the code was using mutable pointers to the layers when it could use immutable ones.