EmilDohne / PhotoshopAPI

A modern and performant C++20 read/write parser of Photoshop Files (*.psd and *.psb) with fully fledged Python bindings hosted on PyPi
https://photoshopapi.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
94 stars 9 forks source link

findLayerAs() should return nullptr if layer cannot be found like findLayer() #66

Closed EmilDohne closed 3 months ago

EmilDohne commented 5 months ago

Currently if a layer cannot be found it actually throws an error but instead it should just return a nullptr. That way users can check if (auto lr = findLayerAs<T, GroupLayer>("path"))