[Bf-blender-cvs] [99663c7] compositor-2016: collada exporter: fixed wrong check for bone roll value

Gaia Clary noreply at git.blender.org
Wed Jun 8 21:50:54 CEST 2016


Commit: 99663c7e678a2497425038e04cf33b0cc9bb4f87
Author: Gaia Clary
Date:   Sat May 28 20:52:10 2016 +0200
Branches: compositor-2016
https://developer.blender.org/rB99663c7e678a2497425038e04cf33b0cc9bb4f87

collada exporter: fixed wrong check for bone roll value

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

M	source/blender/collada/ArmatureExporter.cpp

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

diff --git a/source/blender/collada/ArmatureExporter.cpp b/source/blender/collada/ArmatureExporter.cpp
index c8d92f4..4f5cf83 100644
--- a/source/blender/collada/ArmatureExporter.cpp
+++ b/source/blender/collada/ArmatureExporter.cpp
@@ -186,7 +186,7 @@ void ArmatureExporter::add_bone_node(Bone *bone, Object *ob_arm, Scene *sce,
 
 			bArmature *armature = (bArmature *)ob_arm->data;
 			EditBone *ebone = bc_get_edit_bone(armature, bone->name);
-			if (ebone && ebone->roll > 0)
+			if (ebone && ebone->roll != 0)
 			{
 				node.addExtraTechniqueParameter("blender", "roll", ebone->roll);
 			}




More information about the Bf-blender-cvs mailing list