Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2011-03-25 12:52:36 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2011-03-25 12:52:36 +0300
commitc5c4b31d6b51b3a51855bc9adcde91564aa1a8c7 (patch)
treea684e653034b122bca0cfc70149d733667201957 /source/blender/collada/ExtraHandler.cpp
parent5f5d091554141ae886a6f5b25422f1b8d8a0fc95 (diff)
Mostly formatting commit, small elaboration in extra handling API (take pointer to importer).
Diffstat (limited to 'source/blender/collada/ExtraHandler.cpp')
-rw-r--r--source/blender/collada/ExtraHandler.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/collada/ExtraHandler.cpp b/source/blender/collada/ExtraHandler.cpp
index deec22fac04..3ab34e70c8c 100644
--- a/source/blender/collada/ExtraHandler.cpp
+++ b/source/blender/collada/ExtraHandler.cpp
@@ -27,14 +27,16 @@
*/
#include <stddef.h>
-
#include "BLI_string.h"
#include "ExtraHandler.h"
-ExtraHandler::ExtraHandler(){}
+ExtraHandler::ExtraHandler(DocumentImporter *dimp)
+{
+ this->dimp = dimp;
+}
-ExtraHandler::~ExtraHandler(){}
+ExtraHandler::~ExtraHandler() {}
bool ExtraHandler::elementBegin( const char* elementName, const char** attributes)
{
@@ -45,6 +47,7 @@ bool ExtraHandler::elementBegin( const char* elementName, const char** attribute
bool ExtraHandler::elementEnd(const char* elementName )
{
printf("end: %s\n", elementName);
+ currentUid = COLLADAFW::UniqueId();
return true;
}
@@ -62,6 +65,7 @@ bool ExtraHandler::parseElement (
const COLLADAFW::UniqueId& uniqueId ) {
if(BLI_strcaseeq(profileName, "blender")) {
printf("In parseElement for supported profile %s for id %s\n", profileName, uniqueId.toAscii().c_str());
+ currentUid = uniqueId;
return true;
}
printf("In parseElement for unsupported profile %s for id %s\n", profileName, uniqueId.toAscii().c_str());