[Bf-extensions-cvs] [4fe2c612] master: animation_add_corrective_shape_key: restore fast mode, thanks Shrinivas: T65258

meta-androcto noreply at git.blender.org
Tue Jun 25 14:17:35 CEST 2019


Commit: 4fe2c612f133640c0ab5d4bba3c0eb121bfe555d
Author: meta-androcto
Date:   Tue Jun 25 22:17:03 2019 +1000
Branches: master
https://developer.blender.org/rBA4fe2c612f133640c0ab5d4bba3c0eb121bfe555d

animation_add_corrective_shape_key: restore fast mode, thanks Shrinivas: T65258

===================================================================

M	animation_add_corrective_shape_key.py

===================================================================

diff --git a/animation_add_corrective_shape_key.py b/animation_add_corrective_shape_key.py
index c0824168..dcfd6811 100644
--- a/animation_add_corrective_shape_key.py
+++ b/animation_add_corrective_shape_key.py
@@ -21,7 +21,7 @@
 bl_info = {
     "name": "Corrective Shape Keys",
     "author": "Ivo Grigull (loolarge), Tal Trachtman", "Tokikake"
-    "version": (1, 1, 0),
+    "version": (1, 1, 1),
     "blender": (2, 80, 0),
     "location": "Object Data > Shape Keys (Search: corrective) ",
     "description": "Creates a corrective shape key for the current pose",
@@ -316,7 +316,7 @@ class object_duplicate_flatten_modifiers(bpy.types.Operator):
 
         return {'FINISHED'}
 
-""" these old functions and class not work correctly just keep code for others try to edit
+#these old functions and class not work correctly just keep code for others try to edit
 
 def unposeMesh(meshObToUnpose, obj, armatureOb):
     psdMeshData = meshObToUnpose
@@ -389,14 +389,13 @@ def unposeMesh(meshObToUnpose, obj, armatureOb):
 
         sigma = I + sigma
         sigma.invert()
-        psdMeshVert.co = psdMeshVert.co @ sigma
+        psdMeshVert.co = sigma @ psdMeshVert.co
         obj.update_tag()
         bpy.context.view_layer.update()
-"""
 
-"""
-def func_add_corrective_pose_shape_fast(source, target):
 
+
+def func_add_corrective_pose_shape_fast(source, target):
     reset_transform(target)
 
     # If target object doesn't have Basis shape key, create it.
@@ -460,9 +459,9 @@ def func_add_corrective_pose_shape_fast(source, target):
     target.data.update()
     
 
-"""
 
-"""
+
+
 class add_corrective_pose_shape_fast(bpy.types.Operator):
     #Adds 1st object as shape to 2nd object as pose shape (only 1 armature)
 
@@ -488,7 +487,7 @@ class add_corrective_pose_shape_fast(bpy.types.Operator):
         func_add_corrective_pose_shape_fast(source, target)
 
         return {'FINISHED'}
-"""
+
 
 
 # -----------------------------------------------------------------------------
@@ -510,7 +509,7 @@ def vgroups_draw(self, context):
 def modifiers_draw(self, context):
     pass
 
-classes = (add_corrective_pose_shape, add_corrective_pose_shape_delta, object_duplicate_flatten_modifiers, )
+classes = (add_corrective_pose_shape, add_corrective_pose_shape_delta, object_duplicate_flatten_modifiers, add_corrective_pose_shape_fast)
 def register():
     from bpy.utils import register_class
     for cls in classes:



More information about the Bf-extensions-cvs mailing list