[Bf-extensions-cvs] [6b753382] master: Rigify: update super_chain to 2.8 and hide most operators from search.

Alexander Gavrilov noreply at git.blender.org
Wed May 22 17:27:31 CEST 2019


Commit: 6b753382d69015a70e158e340b2d49b54790d4b6
Author: Alexander Gavrilov
Date:   Wed May 22 11:56:27 2019 +0300
Branches: master
https://developer.blender.org/rBA6b753382d69015a70e158e340b2d49b54790d4b6

Rigify: update super_chain to 2.8 and hide most operators from search.

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

M	rigify/feature_sets.py
M	rigify/rig_ui_template.py
M	rigify/rigs/experimental/super_chain.py
M	rigify/rot_mode.py
M	rigify/ui.py

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

diff --git a/rigify/feature_sets.py b/rigify/feature_sets.py
index 64f40ba9..3a7c2bec 100644
--- a/rigify/feature_sets.py
+++ b/rigify/feature_sets.py
@@ -62,7 +62,7 @@ class DATA_OT_rigify_add_feature_set(bpy.types.Operator):
     bl_idname = "wm.rigify_add_feature_set"
     bl_label = "Add External Feature Set"
     bl_description = "Add external feature set (rigs, metarigs, ui templates)"
-    bl_options = {"REGISTER", "UNDO"}
+    bl_options = {"REGISTER", "UNDO", "INTERNAL"}
 
     filter_glob: StringProperty(default="*.zip", options={'HIDDEN'})
     filepath: StringProperty(maxlen=1024, subtype='FILE_PATH', options={'HIDDEN', 'SKIP_SAVE'})
@@ -107,7 +107,7 @@ class DATA_OT_rigify_remove_feature_set(bpy.types.Operator):
     bl_idname = "wm.rigify_remove_feature_set"
     bl_label = "Remove External Feature Set"
     bl_description = "Remove external feature set (rigs, metarigs, ui templates)"
-    bl_options = {"REGISTER", "UNDO"}
+    bl_options = {"REGISTER", "UNDO", "INTERNAL"}
 
     featureset: StringProperty(maxlen=1024, options={'HIDDEN', 'SKIP_SAVE'})
 
diff --git a/rigify/rig_ui_template.py b/rigify/rig_ui_template.py
index cebed827..3fbcf996 100644
--- a/rigify/rig_ui_template.py
+++ b/rigify/rig_ui_template.py
@@ -623,7 +623,7 @@ class Rigify_Arm_FK2IK(bpy.types.Operator):
     """
     bl_idname = "pose.rigify_arm_fk2ik_" + rig_id
     bl_label = "Rigify Snap FK arm to IK"
-    bl_options = {'UNDO'}
+    bl_options = {'UNDO', 'INTERNAL'}
 
     uarm_fk: StringProperty(name="Upper Arm FK Name")
     farm_fk: StringProperty(name="Forerm FK Name")
@@ -647,7 +647,7 @@ class Rigify_Arm_IK2FK(bpy.types.Operator):
     """
     bl_idname = "pose.rigify_arm_ik2fk_" + rig_id
     bl_label = "Rigify Snap IK arm to FK"
-    bl_options = {'UNDO'}
+    bl_options = {'UNDO', 'INTERNAL'}
 
     uarm_fk: StringProperty(name="Upper Arm FK Name")
     farm_fk: StringProperty(name="Forerm FK Name")
@@ -681,7 +681,7 @@ class Rigify_Leg_FK2IK(bpy.types.Operator):
     """
     bl_idname = "pose.rigify_leg_fk2ik_" + rig_id
     bl_label = "Rigify Snap FK leg to IK"
-    bl_options = {'UNDO'}
+    bl_options = {'UNDO', 'INTERNAL'}
 
     thigh_fk: StringProperty(name="Thigh FK Name")
     shin_fk:  StringProperty(name="Shin FK Name")
@@ -707,7 +707,7 @@ class Rigify_Leg_IK2FK(bpy.types.Operator):
     """
     bl_idname = "pose.rigify_leg_ik2fk_" + rig_id
     bl_label = "Rigify Snap IK leg to FK"
-    bl_options = {'UNDO'}
+    bl_options = {'UNDO', 'INTERNAL'}
 
     thigh_fk: StringProperty(name="Thigh FK Name")
     shin_fk:  StringProperty(name="Shin FK Name")
diff --git a/rigify/rigs/experimental/super_chain.py b/rigify/rigs/experimental/super_chain.py
index 6786b7c5..2a3a85f6 100644
--- a/rigify/rigs/experimental/super_chain.py
+++ b/rigify/rigs/experimental/super_chain.py
@@ -29,11 +29,11 @@ class Rig:
         setattr(v, axis, scale)
 
         if reverse:
-            tail_vec = v * self.obj.matrix_world
+            tail_vec = v @ self.obj.matrix_world
             eb.head[:] = eb.tail
             eb.tail[:] = eb.head + tail_vec
         else:
-            tail_vec = v * self.obj.matrix_world
+            tail_vec = v @ self.obj.matrix_world
             eb.tail[:] = eb.head + tail_vec
 
     def create_pivot(self, pivot=None):
diff --git a/rigify/rot_mode.py b/rigify/rot_mode.py
index 2b234335..fbc425f6 100644
--- a/rigify/rot_mode.py
+++ b/rigify/rot_mode.py
@@ -259,7 +259,7 @@ class CONVERT_OT_quat2eu_current_action(bpy.types.Operator):
     bl_label = 'Convert Current Action'
     bl_idname = 'rigify_quat2eu.current'
     bl_description = 'Converts bones in current Action'
-    bl_options = {'REGISTER', 'UNDO'}
+    bl_options = {'REGISTER', 'UNDO', 'INTERNAL'}
 
     # on mouse up:
     def invoke(self, context, event):
@@ -285,7 +285,7 @@ class CONVERT_OT_quat2eu_all_actions(bpy.types.Operator):
     bl_label = 'Convert All Actions'
     bl_idname = 'rigify_quat2eu.all'
     bl_description = 'Converts bones in every Action'
-    bl_options = {'REGISTER', 'UNDO'}
+    bl_options = {'REGISTER', 'UNDO', 'INTERNAL'}
 
     # on mouse up:
     def invoke(self, context, event):
diff --git a/rigify/ui.py b/rigify/ui.py
index 0ec38791..0091f7b9 100644
--- a/rigify/ui.py
+++ b/rigify/ui.py
@@ -731,7 +731,7 @@ class LayerInit(bpy.types.Operator):
 
     bl_idname = "pose.rigify_layer_init"
     bl_label = "Add Rigify Layers"
-    bl_options = {'UNDO'}
+    bl_options = {'UNDO', 'INTERNAL'}
 
     def execute(self, context):
         obj = context.object
@@ -748,7 +748,7 @@ class Generate(bpy.types.Operator):
 
     bl_idname = "pose.rigify_generate"
     bl_label = "Rigify Generate Rig"
-    bl_options = {'UNDO'}
+    bl_options = {'UNDO', 'INTERNAL'}
     bl_description = 'Generates a rig from the active metarig armature'
 
     def execute(self, context):
@@ -784,7 +784,7 @@ class SwitchToLegacy(bpy.types.Operator):
     bl_idname = "pose.rigify_switch_to_legacy"
     bl_label = "Legacy Mode will disable Rigify new features"
     bl_description = 'Switches Rigify to Legacy Mode'
-    bl_options = {'UNDO'}
+    bl_options = {'UNDO', 'INTERNAL'}
 
     def invoke(self, context, event):
         return context.window_manager.invoke_confirm(self, event)
@@ -799,7 +799,7 @@ class Sample(bpy.types.Operator):
 
     bl_idname = "armature.metarig_sample_add"
     bl_label = "Add a sample metarig for a rig type"
-    bl_options = {'UNDO'}
+    bl_options = {'UNDO', 'INTERNAL'}
 
     metarig_type: StringProperty(
         name="Type",
@@ -1211,6 +1211,7 @@ class OBJECT_OT_IK2FK(bpy.types.Operator):
     bl_idname = "rigify.ik2fk"
     bl_label = "IK2FK"
     bl_description = "Snaps IK limb on FK"
+    bl_options = {'INTERNAL'}
 
     def execute(self,context):
         rig = context.object
@@ -1226,6 +1227,7 @@ class OBJECT_OT_FK2IK(bpy.types.Operator):
     bl_idname = "rigify.fk2ik"
     bl_label = "FK2IK"
     bl_description = "Snaps FK limb on IK"
+    bl_options = {'INTERNAL'}
 
     def execute(self,context):
         rig = context.object
@@ -1240,6 +1242,7 @@ class OBJECT_OT_TransferFKtoIK(bpy.types.Operator):
     bl_idname = "rigify.transfer_fk_to_ik"
     bl_label = "Transfer FK anim to IK"
     bl_description = "Transfer FK animation to IK bones"
+    bl_options = {'INTERNAL'}
 
     def execute(self, context):
         rig = context.object
@@ -1255,6 +1258,7 @@ class OBJECT_OT_TransferIKtoFK(bpy.types.Operator):
     bl_idname = "rigify.transfer_ik_to_fk"
     bl_label = "Transfer IK anim to FK"
     bl_description = "Transfer IK animation to FK bones"
+    bl_options = {'INTERNAL'}
 
     def execute(self, context):
         rig = context.object
@@ -1268,6 +1272,7 @@ class OBJECT_OT_ClearAnimation(bpy.types.Operator):
     bl_idname = "rigify.clear_animation"
     bl_label = "Clear Animation"
     bl_description = "Clear Animation For FK or IK Bones"
+    bl_options = {'INTERNAL'}
 
     anim_type: StringProperty()
 
@@ -1290,6 +1295,7 @@ class OBJECT_OT_Rot2Pole(bpy.types.Operator):
     bl_idname = "rigify.rotation_pole"
     bl_label = "Rotation - Pole toggle"
     bl_description = "Toggles IK chain between rotation and pole target"
+    bl_options = {'INTERNAL'}
 
     bone_name: StringProperty(default='')
     window: StringProperty(default='ALL')



More information about the Bf-extensions-cvs mailing list