When copying grease pencil strokes, `BKE_object_material_get()` was used to retrieve the material ID, but the index starts at 1 instead of 0, this caused the pasted material to be wrong. Now the index is properly incremented to 1 when copying. Pull Request: https://projects.blender.org/blender/blender/pulls/145398