[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47101] branches/soc-2012-bratwurst/source /blender/collada: Tracking constraint Blender Profile for nodes.

Sukhitha Jayathilake pr.jayathilake at gmail.com
Mon May 28 07:25:29 CEST 2012


Revision: 47101
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47101
Author:   phabtar
Date:     2012-05-28 05:25:29 +0000 (Mon, 28 May 2012)
Log Message:
-----------
Tracking constraint Blender Profile for nodes.

Modified Paths:
--------------
    branches/soc-2012-bratwurst/source/blender/collada/SceneExporter.cpp
    branches/soc-2012-bratwurst/source/blender/collada/SceneExporter.h

Modified: branches/soc-2012-bratwurst/source/blender/collada/SceneExporter.cpp
===================================================================
--- branches/soc-2012-bratwurst/source/blender/collada/SceneExporter.cpp	2012-05-28 04:48:42 UTC (rev 47100)
+++ branches/soc-2012-bratwurst/source/blender/collada/SceneExporter.cpp	2012-05-28 05:25:29 UTC (rev 47101)
@@ -158,6 +158,14 @@
 		writeNodes(*i, sce);
 	}
 
+	if (ob->constraints.first != NULL ){
+		bConstraint *con = (bConstraint*) ob->constraints.first;
+		while(con){
+			node.addExtraTechniqueParameter("blender","conType",con->type);
+			node.addExtraTechniqueParameter("blender","conName",con->name);
+			con = con->next;
+		}
+	}
 
 	if (ob->type != OB_ARMATURE)
 		node.end();

Modified: branches/soc-2012-bratwurst/source/blender/collada/SceneExporter.h
===================================================================
--- branches/soc-2012-bratwurst/source/blender/collada/SceneExporter.h	2012-05-28 04:48:42 UTC (rev 47100)
+++ branches/soc-2012-bratwurst/source/blender/collada/SceneExporter.h	2012-05-28 05:25:29 UTC (rev 47101)
@@ -43,6 +43,7 @@
 #include "DNA_anim_types.h"
 #include "DNA_action_types.h"
 #include "DNA_curve_types.h"
+#include "DNA_constraint_types.h"
 #include "DNA_armature_types.h"
 #include "DNA_modifier_types.h"
 #include "DNA_userdef_types.h"




More information about the Bf-blender-cvs mailing list