GPencil Tools: Fix layer navigator UI
commit5680981032a0a324a35ee9727e6d581d595a6641
authorSamuel Bernou <pullup@noreply.localhost>
Tue, 17 Oct 2023 07:06:44 +0000 (17 09:06 +0200)
committerSamuel Bernou <pullup@noreply.localhost>
Tue, 17 Oct 2023 07:06:44 +0000 (17 09:06 +0200)
tree5fde9d119c359c487bc9eceaa9ae7b30b010f3f8
parent08d975205b5c719f956629445f3e5df61f81cced
GPencil Tools: Fix layer navigator UI

layer navigator was failing to display because of wrong viewport region access.
Getting `area.regions` was previously done using hardcoded indices. Now more reliably use regions types.
greasepencil_tools/__init__.py
greasepencil_tools/layer_navigator.py