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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-02-19 22:41:30 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-19 22:41:30 +0400
commitdc68210c7e432cf313721541e639426dd94f2dfb (patch)
tree4fb676fa675c304d6594264cc9c1417967d15ff5 /release/scripts/modules
parent51488283564273c5e796d5ca3ded47f2726330e8 (diff)
parentd6deca4e9d6bc7faff98644286571c7934324a9d (diff)
misc changes from trunk (avoid confusion since these were not intentional differences)bmesh
Diffstat (limited to 'release/scripts/modules')
-rw-r--r--release/scripts/modules/bpy_types.py4
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