File headers: use SPDX license identifiers

Some files needed to be changed manually.
This commit is contained in:
Campbell Barton 2022-02-11 16:34:06 +11:00
parent b8d86ccc0a
commit f7876b71cd
27 changed files with 67 additions and 22 deletions

View File

@ -1,4 +1,6 @@
# GPL # Original Authors: Evan J. Rosky (syrux), Chichiri, Jace Priester #
# SPDX-License-Identifier: GPL-2.0-or-later
# Original Authors: Evan J. Rosky (syrux), Chichiri, Jace Priester
import bpy
import random

View File

@ -1,4 +1,6 @@
# GPL # Author, Anthony D'Agostino
# SPDX-License-Identifier: GPL-2.0-or-later
# Author, Anthony D'Agostino
import bpy
from bpy.props import (

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
from mathutils import Vector
from amaranth.utils import cycles_exists

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
from bpy.types import Panel

View File

@ -1,14 +1,12 @@
#
#
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2019 Shrinivas Kulkarni
# This Blender add-on assigns one or more Bezier Curves as shape keys to another
# Bezier Curve
#
# Supported Blender Versions: 2.8x
#
# Copyright (C) 2019 Shrinivas Kulkarni
#
# License: GPL-3.0 (https://github.com/Shriinivas/assignshapekey/blob/master/LICENSE)
#
# https://github.com/Shriinivas/assignshapekey/blob/master/LICENSE
import bpy, bmesh, bgl, gpu
from gpu_extras.batch import batch_for_shader

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
from . import mathematics
import bpy

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import time
import threading

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
import re
import ssl

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
from .prefs import get_addon_prefs
import bpy
@ -100,7 +102,7 @@ class RC_OT_RotateCanvas(bpy.types.Operator):
## area deformation restore
new_cam_offset = mathutils.Vector((new_cam_offset[0], new_cam_offset[1] * self.ratio_inv))
context.space_data.region_3d.view_camera_offset = new_cam_offset
def execute(self, context):
@ -201,7 +203,7 @@ class RC_OT_RotateCanvas(bpy.types.Operator):
# CORRECT UI OVERLAP FROM HEADER TOOLBAR
regs = context.area.regions
if context.preferences.system.use_region_overlap:
w = context.area.width
w = context.area.width
# minus tool header
h = context.area.height - regs[0].height
else:
@ -209,9 +211,9 @@ class RC_OT_RotateCanvas(bpy.types.Operator):
w = context.area.width - regs[2].width - regs[3].width
# minus tool header + header
h = context.area.height - regs[0].height - regs[1].height
self.ratio = h / w
self.ratio_inv = w / h
self.ratio_inv = w / h
if self.in_cam:
# Get camera from scene
@ -221,8 +223,8 @@ class RC_OT_RotateCanvas(bpy.types.Operator):
if self.cam.lock_rotation[:] != (False, False, False):
self.report({'WARNING'}, 'Camera rotation is locked')
return {'CANCELLED'}
if self.use_view_center:
if self.use_view_center:
self.center = mathutils.Vector((w/2, h/2))
else:
self.center = self.get_center_view(context, self.cam)
@ -234,7 +236,7 @@ class RC_OT_RotateCanvas(bpy.types.Operator):
# store camera matrix world
self.cam_matrix = self.cam.matrix_world.copy()
# self.cam_init_euler = self.cam.rotation_euler.copy()
## initialize current view_offset in camera
self.view_cam_offset = mathutils.Vector(context.space_data.region_3d.view_camera_offset)

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# This script is Free software. Please share and reuse.
# 2010-2021 Adam Dominec <adominec@gmail.com>
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright 2010-2021 Adam Dominec <adominec@gmail.com>
## Code structure
# This file consists of several components, in this order:

View File

@ -1,4 +1,6 @@
# gpl: author Daniel Schalla, maintained by meta-androcto
# SPDX-License-Identifier: GPL-2.0-or-later
# author Daniel Schalla, maintained by meta-androcto
bl_info = {
"name": "Tri-lighting",

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
from threading import Lock
import bgl

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
from math import radians, degrees

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
from .functions import *

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
from bpy.types import Operator

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
from bpy.types import (

View File

@ -1,8 +1,9 @@
# SPDX-License-Identifier: GPL-3.0-or-later
######################################################################################################
# A simple add-on to auto cut in two and mirror an object #
# Actually partially uncommented (see further version) #
# Author: Lapineige, Bookyakuno #
# License: GPL v3 #
######################################################################################################
# 2.8 update by Bookyakuno, meta-androcto

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
import bgl
import blf

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
import bpy_extras
import sys

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
from bpy.props import (
BoolProperty,

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
from mathutils import (
Vector,
)

View File

@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0-or-later
import bpy
import bgl

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
"""Functions for finding and working with Asset Browsers."""
from typing import Iterable, Optional, Tuple

View File

@ -1,4 +1,6 @@
# gpl authors: nfloyd, Francesco Siddi
# SPDX-License-Identifier: GPL-2.0-or-later
# Authors: nfloyd, Francesco Siddi
import gzip
import os

View File

@ -1,4 +1,6 @@
# gpl authors: nfloyd, Francesco Siddi
# SPDX-License-Identifier: GPL-2.0-or-later
# authors: nfloyd, Francesco Siddi
import bpy
from bpy.types import PropertyGroup
from bpy.props import (

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: GPL-2.0-or-later
actionconfig_version = (3, 0, 39)
actionconfig_data = \
[("blender_default",