[Bf-blender-cvs] [4aea8f1] master: Fix T39919: Collada export crashes blender when using a "Copy Location" constraint

Bastien Montagne noreply at git.blender.org
Sun Apr 27 18:29:20 CEST 2014


Commit: 4aea8f10855e9de162ca3ea0c232d2590ec386ba
Author: Bastien Montagne
Date:   Sun Apr 27 18:27:07 2014 +0200
https://developer.blender.org/rB4aea8f10855e9de162ca3ea0c232d2590ec386ba

Fix T39919: Collada export crashes blender when using a "Copy Location" constraint

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

M	source/blender/collada/AnimationExporter.cpp

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

diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp
index 1763d185..f2c057d 100644
--- a/source/blender/collada/AnimationExporter.cpp
+++ b/source/blender/collada/AnimationExporter.cpp
@@ -999,7 +999,9 @@ std::string AnimationExporter::create_4x4_source(std::vector<float> &frames, Obj
 		BIK_release_tree(scene, ob, ctime);
 	}
 
-	enable_fcurves(ob->adt->action, NULL);
+	if (ob->adt) {
+		enable_fcurves(ob->adt->action, NULL);
+	}
 
 	source.finish();




More information about the Bf-blender-cvs mailing list