License & Copyright Headers¶
Source files should have both an SPDX copyright and license header.
- For choice of license, generally use the same license as other source
files in the folder. If not, notify the code reviewer.
Most code is
GPL-2.0-or-later, but not all.
<Current Year> Blender Authorsfor copyright text.
Blender Authorscopyright is not there, add a new line for it with the current year. Do not remove existing copyright text.
- If it is already there and you have made significant changes, you can
optionally change the range to include the current year. But you are
not required to.
2001-2024 Blender Authors.
When adding code from other projects:
- Check the license and find the matching identifier in
doc/license/SPDX-license-identifiers.txt. If it's not listed there, discuss with the code reviewer if the code can be used.
- Preserve the copyright text from the original file in a
Blender Authorscopyright if you modified the code.