Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2022-02-11 11:42:33 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2022-02-11 11:42:33 +0300
commitfe2bb92a6511bee3539d6550bfa733b0ba85f440 (patch)
treefa3e71bffaf91c7b9cf65505583f2d099cb52b44
parentf7876b71cdaa7f9627d1ce9de2e876efaaca19af (diff)
parent363165169709cb1da5a34850c1f259e014c3bdc6 (diff)
Merge branch 'blender-v3.1-release'
-rw-r--r--io_scene_obj/__init__.py8
-rw-r--r--rigify/__init__.py2
-rw-r--r--rigify/rigs/face/skin_eye.py9
3 files changed, 10 insertions, 9 deletions
diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py
index 8b5dad5f..58f60ba1 100644
--- a/io_scene_obj/__init__.py
+++ b/io_scene_obj/__init__.py
@@ -485,12 +485,16 @@ def register():
bpy.utils.register_class(cls)
bpy.types.TOPBAR_MT_file_import.append(menu_func_import)
- bpy.types.TOPBAR_MT_file_export.append(menu_func_export)
+ # Disabling the menu entry for this python exporter now that
+ # there is a C++ exporter. For now, leaving the actual
+ # export_scene.obj pointing at the python version.
+ # bpy.types.TOPBAR_MT_file_export.append(menu_func_export)
def unregister():
bpy.types.TOPBAR_MT_file_import.remove(menu_func_import)
- bpy.types.TOPBAR_MT_file_export.remove(menu_func_export)
+ # See comment above about menu for the python exporter
+ # bpy.types.TOPBAR_MT_file_export.remove(menu_func_export)
for cls in classes:
bpy.utils.unregister_class(cls)
diff --git a/rigify/__init__.py b/rigify/__init__.py
index fea14876..1c9b1fa4 100644
--- a/rigify/__init__.py
+++ b/rigify/__init__.py
@@ -4,7 +4,7 @@
bl_info = {
"name": "Rigify",
- "version": (0, 6, 4),
+ "version": (0, 6, 5),
"author": "Nathan Vegdahl, Lucio Rossi, Ivan Cappiello, Alexander Gavrilov",
"blender": (3, 0, 0),
"description": "Automatic rigging from building-block components",
diff --git a/rigify/rigs/face/skin_eye.py b/rigify/rigs/face/skin_eye.py
index 13628f41..2d1f6c2f 100644
--- a/rigify/rigs/face/skin_eye.py
+++ b/rigify/rigs/face/skin_eye.py
@@ -76,13 +76,10 @@ class Rig(BaseSkinRig):
if len(self.eye_corner_nodes) != 2:
self.raise_error('Expected 2 eye corners, but found {}', len(self.eye_corner_nodes))
- # Build a coordinate space with XY plane based on center and two corners,
- # and Y axis oriented as close to the eye axis as possible.
- vecs = [(node.point - self.center).normalized() for node in self.eye_corner_nodes]
- normal = vecs[0].cross(vecs[1])
- space_axis = self.axis - self.axis.project(normal)
+ # Build a coordinate space with XY plane based on eye axis and two corners
+ corner_axis = self.eye_corner_nodes[1].point - self.eye_corner_nodes[0].point
- matrix = matrix_from_axis_pair(space_axis, normal, 'z').to_4x4()
+ matrix = matrix_from_axis_pair(self.axis, corner_axis, 'x').to_4x4()
matrix.translation = self.center
self.eye_corner_matrix = matrix.inverted()