From feb73702be9f04e06b5334a6476767388e58b7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Ambrosio?= Date: Sun, 19 Jan 2025 22:17:37 +0100 Subject: [PATCH 1/4] Changed version of the library --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index e810704..6b7fd56 100644 --- a/__init__.py +++ b/__init__.py @@ -9,10 +9,10 @@ bl_info = { "name": "Wrapping Tools", "author": "Rich Colburn, email: the3dadvantage@gmail.com", - "version": (1, 0), + "version": (1, 0, 2), "blender": (2, 80, 0), "location": "View3D > Extended Tools", - "description": "Tools for deforming around complex surfaces", + "description": "Tools for deforming around complex surfaces. Fixed by Lordchammon", "warning": "If God loses self-confidence He will be an atheist", "wiki_url": "", "category": '3D View'} From 28dbdf9b1ffd7f1528740eee2298aed2674b6137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Ambrosio?= Date: Sun, 19 Jan 2025 22:19:51 +0100 Subject: [PATCH 2/4] Fixed SurfaceFollow --- SurfaceFollow28.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SurfaceFollow28.py b/SurfaceFollow28.py index 1a93130..832de35 100644 --- a/SurfaceFollow28.py +++ b/SurfaceFollow28.py @@ -2,12 +2,11 @@ # If there are weird bind errors like the mesh is not deforming correctly, compare # the oct version of closest triangles to the one without oct - bl_info = { "name": "Surface Follow", "author": "Rich Colburn, email: the3dadvantage@gmail.com", - "version": (1, 0), - "blender": (2, 80, 0), + "version": (1, 0, 2), + "blender": (4, 2, 0), "location": "View3D > Extended Tools > Surface Follow", "description": "Doforms an object as the surface of another object changes", "warning": "You might have only imagined you were halucinating", @@ -262,7 +261,7 @@ def nearest_triangles_oct(surface_coords, follower_coords, tris): # octree # yes I really created an octree inline. What's the world coming to... I know, I know follow_co = follower_coords.astype(np.float32) surface_co = surface_coords.astype(np.float32) - fill_me = np.zeros(len(follow_co), dtype=np.int) + fill_me = np.zeros(len(follow_co), dtype=np.int_) means = np.mean(surface_co[tris], axis=1) # 2: Get the mean of the surface tri means. From 00e216073b0dfd094c88af539e2099c26c92295f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Ambrosio?= Date: Sun, 19 Jan 2025 22:20:29 +0100 Subject: [PATCH 3/4] Fixed UVShape --- UVShape28.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/UVShape28.py b/UVShape28.py index 0b0b31f..850a526 100644 --- a/UVShape28.py +++ b/UVShape28.py @@ -4,8 +4,8 @@ bl_info = { "name": "UV Shape", "author": "Rich Colburn, email: the3dadvantage@gmail.com", - "version": (1, 0), - "blender": (2, 80, 0), + "version": (1, 0, 2), + "blender": (4, 2, 0), "location": "View3D > Extended Tools > Create UV Shape", "description": "Creates a flattened version of the mesh as a shape key", "warning": "Life is a vapor of smoke. Eternity lasts forever.", @@ -18,7 +18,7 @@ def get_selected_edges(ob='empty'): '''returns a bool array of selected edges''' if ob == 'empty': ob = bpy.context.object - ed = np.zeros(len(ob.data.edges), dtype=np.bool) + ed = np.zeros(len(ob.data.edges), dtype=np.bool_) ob.data.edges.foreach_get('select', ed) return ed @@ -140,7 +140,7 @@ def basic_unwrap(): ob.data.uv_layers.active_index = len(ob.data.uv_layers) - 1 ob.active_shape_key_index = 0 - data.vertices.foreach_set('select', np.ones(len(data.vertices), dtype=np.bool)) + data.vertices.foreach_set('select', np.ones(len(data.vertices), dtype=np.bool_)) bpy.ops.object.mode_set(mode='EDIT') bpy.ops.uv.unwrap(method='ANGLE_BASED', margin=0.0635838) @@ -375,7 +375,7 @@ def autosplit_geometry(): bpy.ops.object.mode_set(mode='OBJECT') # use numpy to count remaining - stored = np.zeros(len(ob.data.vertices), dtype=np.bool) + stored = np.zeros(len(ob.data.vertices), dtype=np.bool_) ob.data.vertices.foreach_get('select', stored) remaining = len(stored[stored]) From 7324317f876a94a3ec914600efe3c32557ff6689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Ambrosio?= Date: Sun, 19 Jan 2025 22:21:52 +0100 Subject: [PATCH 4/4] Changed compatible Blender version --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 6b7fd56..9ccce72 100644 --- a/__init__.py +++ b/__init__.py @@ -10,7 +10,7 @@ "name": "Wrapping Tools", "author": "Rich Colburn, email: the3dadvantage@gmail.com", "version": (1, 0, 2), - "blender": (2, 80, 0), + "blender": (4, 2, 0), "location": "View3D > Extended Tools", "description": "Tools for deforming around complex surfaces. Fixed by Lordchammon", "warning": "If God loses self-confidence He will be an atheist",