misc changes from trunk (avoid confusion since these were not intentional differences)
[blender-staging.git] / release / scripts / modules / bpy_types.py
index eeb8f375c3de0e8422b076296d931eece939af5d..c5dc07e493a43441ed2186115550dc35a65f429c 100644 (file)
@@ -202,7 +202,7 @@ class _GenericBone:
     @property
     def center(self):
         """The midpoint between the head and the tail."""
-        return self.head.lerp(self.tail, 0.5)
+        return (self.head + self.tail) * 0.5
 
     @property
     def length(self):
@@ -650,7 +650,7 @@ class _GenericUI:
         draw_funcs = cls._dyn_ui_initialize()
         try:
             draw_funcs.remove(draw_func)
-        except ValueError:
+        except:
             pass