[Bf-blender-cvs] [2be5621be81] blender2.8: Fix T56838: Quick smoke failing with Python error.

Bastien Montagne noreply at git.blender.org
Wed Sep 19 10:33:38 CEST 2018


Commit: 2be5621be818d267a5edc2d16be5d320e480dfad
Author: Bastien Montagne
Date:   Wed Sep 19 10:32:58 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB2be5621be818d267a5edc2d16be5d320e480dfad

Fix T56838: Quick smoke failing with Python error.

Again the change to @ operator for matrix multiplication...

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

M	release/scripts/startup/bl_operators/object_quick_effects.py

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

diff --git a/release/scripts/startup/bl_operators/object_quick_effects.py b/release/scripts/startup/bl_operators/object_quick_effects.py
index d0b0fccf65e..e3c8b2c0f04 100644
--- a/release/scripts/startup/bl_operators/object_quick_effects.py
+++ b/release/scripts/startup/bl_operators/object_quick_effects.py
@@ -287,7 +287,7 @@ class QuickExplode(Operator):
 
 def obj_bb_minmax(obj, min_co, max_co):
     for i in range(0, 8):
-        bb_vec = obj.matrix_world * Vector(obj.bound_box[i])
+        bb_vec = obj.matrix_world @ Vector(obj.bound_box[i])
 
         min_co[0] = min(bb_vec[0], min_co[0])
         min_co[1] = min(bb_vec[1], min_co[1])



More information about the Bf-blender-cvs mailing list