add_mesh_geodesic_domes: Fix for ctest: script_load_addons fails: T66156

This commit is contained in:
Brendon Murphy 2019-06-27 10:09:01 +10:00
parent 2ba08390b5
commit b7438b8a75
Notes: blender-bot 2023-02-14 02:05:09 +01:00
Referenced by issue blender/blender#66156, ctest: script_load_addons fails (again)
2 changed files with 5 additions and 5 deletions

View File

@ -190,7 +190,7 @@ def menu_func(self, context):
# Register
classes = [
add_shape_geodesic.add_corrective_pose_shape_fast,
add_shape_geodesic.add_pose_shape_fast,
third_domes_panel_271.GenerateGeodesicDome,
third_domes_panel_271.DialogOperator,
]

View File

@ -7,7 +7,7 @@ def reset_transform(ob):
ob.matrix_local = m
def func_add_corrective_pose_shape_fast(source, target):
def func_add_pose_shape_fast(source, target):
result = ""
reset_transform(target)
# If target object doesn't have Basis shape key, create it.
@ -67,8 +67,8 @@ def func_add_corrective_pose_shape_fast(source, target):
return result
class add_corrective_pose_shape_fast(bpy.types.Operator):
bl_idname = "object.add_corrective_pose_shape_fast"
class add_pose_shape_fast(bpy.types.Operator):
bl_idname = "object.add_pose_shape_fast"
bl_label = "Add object as corrective shape faster"
bl_description = "Adds 1st object as shape to 2nd object as pose shape (only 1 armature)"
@ -90,6 +90,6 @@ class add_corrective_pose_shape_fast(bpy.types.Operator):
source = selection[0]
print(source)
print(target)
func_add_corrective_pose_shape_fast(source, target)
func_add_pose_shape_fast(source, target)
return {'FINISHED'}