Fix #125866: Crash when converting empty grease pencil to instances #125887

Merged
Lukas Tönne merged 1 commits from LukasTonne/blender:fix-instance-gpv3-empty into main 2024-08-05 12:15:15 +02:00

1 Commits

Author SHA1 Message Date
6a7313b29c Fix #125866: Crash when converting empty grease pencil to instances.
The specialized code for converting grease pencil layer attributes to
instance attributes was accessing the instance component without check.
This _should_ work because the component is explicitly created, but
still fails for empty grease pencil data, because the
`get_component_ptr` function checks if the component is "empty" as well
(zero instances).
2024-08-05 11:33:03 +02:00