[Bf-blender-cvs] [6c12b6559e2] fracture_modifier: partial fix for wrong rotation when converting to keyframes
Martin Felke
noreply at git.blender.org
Sun Feb 3 12:41:48 CET 2019
Commit: 6c12b6559e2c10c414b1425bae3e364d5f9904ce
Author: Martin Felke
Date: Sun Feb 3 12:41:18 2019 +0100
Branches: fracture_modifier
https://developer.blender.org/rB6c12b6559e2c10c414b1425bae3e364d5f9904ce
partial fix for wrong rotation when converting to keyframes
forgot to initialize ob->quat for passive objects, they are most likely in euler rotation
mode still and the ob->quat seems not automatically in sync
===================================================================
M source/blender/editors/object/object_modifier.c
===================================================================
diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c
index f7d28ffddce..91f439392f4 100644
--- a/source/blender/editors/object/object_modifier.c
+++ b/source/blender/editors/object/object_modifier.c
@@ -3523,6 +3523,8 @@ static Object* do_convert_meshIsland(FractureModifierData* fmd, MeshIsland *mi,
sub_v3_v3(ob_new->loc, obloc);
add_v3_v3(ob_new->loc, diff);
+ //init the quat ? old object might not be in quat rotation mode yet
+ eul_to_quat(ob->quat, ob->rot);
copy_qt_qt(ob_new->quat, ob->quat);
if (fmd->fracture_mode == MOD_FRACTURE_EXTERNAL) {
More information about the Bf-blender-cvs
mailing list