diff options
Diffstat (limited to 'release/scripts/modules/bpy_types.py')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index eeb8f375c3d..c5dc07e493a 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -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 |