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. 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]) diff --git a/__init__.py b/__init__.py index e810704..9ccce72 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), - "blender": (2, 80, 0), + "version": (1, 0, 2), + "blender": (4, 2, 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'}