diff options
Diffstat (limited to 'source/blender/collada')
-rw-r--r-- | source/blender/collada/ExtraHandler.cpp | 9 | ||||
-rw-r--r-- | source/blender/collada/ExtraHandler.h | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/collada/ExtraHandler.cpp b/source/blender/collada/ExtraHandler.cpp index c72fdd9766b..bef7accd9f7 100644 --- a/source/blender/collada/ExtraHandler.cpp +++ b/source/blender/collada/ExtraHandler.cpp @@ -65,6 +65,15 @@ bool ExtraHandler::textData(const char *text, size_t textLength) bool ExtraHandler::parseElement( const char *profileName, const unsigned long& elementHash, + const COLLADAFW::UniqueId& uniqueId) +{ + /* implement for backwards compatibility, new version added object parameter */ + return parseElement(profileName, elementHash, uniqueId, NULL); +} + +bool ExtraHandler::parseElement( + const char *profileName, + const unsigned long& elementHash, const COLLADAFW::UniqueId& uniqueId, COLLADAFW::Object* object) { diff --git a/source/blender/collada/ExtraHandler.h b/source/blender/collada/ExtraHandler.h index d2da19acb78..f380c3d6871 100644 --- a/source/blender/collada/ExtraHandler.h +++ b/source/blender/collada/ExtraHandler.h @@ -63,6 +63,12 @@ public: const unsigned long& elementHash, const COLLADAFW::UniqueId& uniqueId, COLLADAFW::Object* object); + + /** For backwards compatibility with older OpenCollada, new version added object parameter */ + bool parseElement ( + const char* profileName, + const unsigned long& elementHash, + const COLLADAFW::UniqueId& uniqueId); private: /** Disable default copy constructor. */ ExtraHandler(const ExtraHandler& pre); |