diff options
Diffstat (limited to 'mesh_tissue')
-rw-r--r-- | mesh_tissue/config.py | 2 | ||||
-rw-r--r-- | mesh_tissue/curves_tools.py | 18 | ||||
-rw-r--r-- | mesh_tissue/material_tools.py | 18 | ||||
-rw-r--r-- | mesh_tissue/polyhedra.py | 22 | ||||
-rw-r--r-- | mesh_tissue/tessellate_numpy.py | 8 | ||||
-rw-r--r-- | mesh_tissue/tissue_properties.py | 18 | ||||
-rw-r--r-- | mesh_tissue/utils.py | 2 | ||||
-rw-r--r-- | mesh_tissue/utils_pip.py | 20 | ||||
-rw-r--r-- | mesh_tissue/weight_tools.py | 34 |
9 files changed, 23 insertions, 119 deletions
diff --git a/mesh_tissue/config.py b/mesh_tissue/config.py index 380cb281..0351ebc9 100644 --- a/mesh_tissue/config.py +++ b/mesh_tissue/config.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + import bpy from bpy.props import ( IntProperty, diff --git a/mesh_tissue/curves_tools.py b/mesh_tissue/curves_tools.py index 5f6e07a4..11a4ced7 100644 --- a/mesh_tissue/curves_tools.py +++ b/mesh_tissue/curves_tools.py @@ -1,20 +1,4 @@ -# ##### BEGIN GPL LICENSE BLOCK ##### -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# ##### END GPL LICENSE BLOCK ##### +# SPDX-License-Identifier: GPL-2.0-or-later # # # (c) Alessandro Zomparelli # diff --git a/mesh_tissue/material_tools.py b/mesh_tissue/material_tools.py index a734abeb..b41568c4 100644 --- a/mesh_tissue/material_tools.py +++ b/mesh_tissue/material_tools.py @@ -1,20 +1,4 @@ -# ##### BEGIN GPL LICENSE BLOCK ##### -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# ##### END GPL LICENSE BLOCK ##### +# SPDX-License-Identifier: GPL-2.0-or-later # # # (c) Alessandro Zomparelli # diff --git a/mesh_tissue/polyhedra.py b/mesh_tissue/polyhedra.py index 394d605a..bd5fca78 100644 --- a/mesh_tissue/polyhedra.py +++ b/mesh_tissue/polyhedra.py @@ -1,20 +1,4 @@ -# ##### BEGIN GPL LICENSE BLOCK ##### -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# ##### END GPL LICENSE BLOCK ##### +# SPDX-License-Identifier: GPL-2.0-or-later # ---------------------------- ADAPTIVE DUPLIFACES --------------------------- # # ------------------------------- version 0.84 ------------------------------- # @@ -174,7 +158,7 @@ class polyhedra_wireframe(Operator): verts1 = [v.index for v in f1.verts] va1 = verts1.index(e.verts[0].index) vb1 = verts1.index(e.verts[1].index) - # chech if order of the edge matches the order of the face + # check if order of the edge matches the order of the face dir1 = va1 == (vb1+1)%len(verts1) edge_vec1 = edge_vec if dir1 else -edge_vec @@ -190,7 +174,7 @@ class polyhedra_wireframe(Operator): verts2 = [v.index for v in f2.verts] va2 = verts2.index(e.verts[0].index) vb2 = verts2.index(e.verts[1].index) - # chech if order of the edge matches the order of the face + # check if order of the edge matches the order of the face dir2 = va2 == (vb2+1)%len(verts2) # check for normal consistency if dir1 != dir2: diff --git a/mesh_tissue/tessellate_numpy.py b/mesh_tissue/tessellate_numpy.py index d3c1fc21..50516b2a 100644 --- a/mesh_tissue/tessellate_numpy.py +++ b/mesh_tissue/tessellate_numpy.py @@ -576,7 +576,7 @@ def tessellate_patch(props): for mat_id, _ob1 in enumerate(components): if _ob1 == None: continue - # Set original values (for next commponents) + # Set original values (for next components) com_modifiers = _com_modifiers bool_shapekeys = _bool_shapekeys @@ -1252,7 +1252,7 @@ class tissue_tessellate(Operator): min=1, soft_max=5, description="Automatically repeat the Tessellation using the " - + "generated geometry as new base object.\nUsefull for " + + "generated geometry as new base object.\nUseful for " + "for branching systems. Dangerous!" ) bool_combine : BoolProperty( @@ -1567,7 +1567,7 @@ class tissue_tessellate(Operator): if no_components: layout = self.layout layout.label(icon='OUTLINER_COLLECTION', text='Components from Active Collection') - layout.label(icon='INFO', text="The Active Collection does not containt any Mesh,") + layout.label(icon='INFO', text="The Active Collection does not contain any Mesh,") layout.label(text="Curve, Surface, Meta or Text object.") return elif self.component_mode == 'MATERIALS': @@ -3725,7 +3725,7 @@ def offset_boundary_materials(bm, boundary_mat_offset=0, boundary_variable_offse bound_verts_value = [0]*len(bm.faces) bound_edges_value = [0]*len(bm.faces) shift_faces = [0]*len(bm.faces) - # store boundaries informations + # store boundaries information for v in bm.verts: if v.is_boundary: for f in v.link_faces: diff --git a/mesh_tissue/tissue_properties.py b/mesh_tissue/tissue_properties.py index 433e60ea..bc06aefc 100644 --- a/mesh_tissue/tissue_properties.py +++ b/mesh_tissue/tissue_properties.py @@ -1,20 +1,4 @@ -# ##### BEGIN GPL LICENSE BLOCK ##### -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# ##### END GPL LICENSE BLOCK ##### +# SPDX-License-Identifier: GPL-2.0-or-later # ---------------------------- ADAPTIVE DUPLIFACES --------------------------- # # ------------------------------- version 0.84 ------------------------------- # diff --git a/mesh_tissue/utils.py b/mesh_tissue/utils.py index cf43d609..b617ac93 100644 --- a/mesh_tissue/utils.py +++ b/mesh_tissue/utils.py @@ -1432,7 +1432,7 @@ def mod_preserve_shape(mod): def recurLayerCollection(layerColl, collName): ''' - Recursivly transverse layer_collection for a particular name. + Recursively transverse layer_collection for a particular name. ''' found = None if (layerColl.name == collName): diff --git a/mesh_tissue/utils_pip.py b/mesh_tissue/utils_pip.py index adfad77f..9e5e712d 100644 --- a/mesh_tissue/utils_pip.py +++ b/mesh_tissue/utils_pip.py @@ -1,22 +1,4 @@ -# -*- coding:utf-8 -*- - -# ##### BEGIN GPL LICENSE BLOCK ##### -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# ##### END GPL LICENSE BLOCK ##### +# SPDX-License-Identifier: GPL-2.0-or-later # <pep8 compliant> diff --git a/mesh_tissue/weight_tools.py b/mesh_tissue/weight_tools.py index d58adc6f..2736945e 100644 --- a/mesh_tissue/weight_tools.py +++ b/mesh_tissue/weight_tools.py @@ -1,27 +1,11 @@ -# ##### BEGIN GPL LICENSE BLOCK ##### -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# ##### END GPL LICENSE BLOCK ##### +# SPDX-License-Identifier: GPL-2.0-or-later #-------------------------- COLORS / GROUPS EXCHANGER -------------------------# # # -# Vertex Color to Vertex Group allow you to convert colors channles to weight # +# Vertex Color to Vertex Group allow you to convert colors channels to weight # # maps. # # The main purpose is to use vertex colors to store information when importing # -# files from other softwares. The script works with the active vertex color # +# files from other software. The script works with the active vertex color # # slot. # # For use the command "Vertex Clors to Vertex Groups" use the search bar # # (space bar). # @@ -229,27 +213,27 @@ class reaction_diffusion_prop(PropertyGroup): update_weight_a : BoolProperty( name="Update Vertex Group A", default=True, - description="Tranfer Cache to the Vertex Groups named A") + description="Transfer Cache to the Vertex Groups named A") update_weight_b : BoolProperty( name="Update Vertex Group B", default=True, - description="Tranfer Cache to the Vertex Groups named B") + description="Transfer Cache to the Vertex Groups named B") update_colors_a : BoolProperty( name="Update Vertex Color A", default=False, - description="Tranfer Cache to the Vertex Color named A") + description="Transfer Cache to the Vertex Color named A") update_colors_b : BoolProperty( name="Update Vertex Color B", default=False, - description="Tranfer Cache to the Vertex Color named B") + description="Transfer Cache to the Vertex Color named B") update_colors : BoolProperty( name="Update Vertex Color AB", default=False, - description="Tranfer Cache to the Vertex Color named AB") + description="Transfer Cache to the Vertex Color named AB") update_uv : BoolProperty( name="Update UV", default=False, - description="Tranfer Cache to the UV Map Layer named AB") + description="Transfer Cache to the UV Map Layer named AB") normalize : BoolProperty( name="Normalize values", default=False, |