diff options
author | gaiaclary <gaia.clary@machinimatrix.org> | 2014-02-03 16:04:51 +0400 |
---|---|---|
committer | gaiaclary <gaia.clary@machinimatrix.org> | 2014-02-03 16:04:51 +0400 |
commit | 89a846df51224ff829b8683dad93024e0b230319 (patch) | |
tree | a402b644ac5f373dd6e23bc4430316cd01d3ef61 /source/blender/collada/DocumentImporter.h | |
parent | 4bd6423b7efdb3a4d1c18d15af3cdc9d7f2e41b7 (diff) |
Add compatibility for older Collada files
The Fix in 273 creates a backward incompatibility:
Collada files that have been created with an older Blender version
will contain the spotlight_size in Radians where Collada wants
this value to be in DEGREE.
This fix adds a check for the Blender Version that was used to create the
Collada file. If the Collada file was made by an older version of Blender
then the importer will assume that spotlight_size is specified in RADIANS.
Reviewers: campbellbarton, sauraedron
Reviewed By: sauraedron
CC: jesterking
Differential Revision: https://developer.blender.org/D279
Diffstat (limited to 'source/blender/collada/DocumentImporter.h')
-rw-r--r-- | source/blender/collada/DocumentImporter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/collada/DocumentImporter.h b/source/blender/collada/DocumentImporter.h index ff0cbd44043..96aa7eb4578 100644 --- a/source/blender/collada/DocumentImporter.h +++ b/source/blender/collada/DocumentImporter.h @@ -97,6 +97,7 @@ public: void finish(); bool writeGlobalAsset(const COLLADAFW::FileInfo*); + std::string get_import_version(const COLLADAFW::FileInfo *asset); bool writeScene(const COLLADAFW::Scene*); @@ -169,6 +170,7 @@ private: std::map<COLLADAFW::UniqueId, COLLADAFW::Node*> root_map; // find root joint by child joint uid, for bone tree evaluation during resampling std::map<COLLADAFW::UniqueId, const COLLADAFW::Object*> FW_object_map; + std::string import_from_version; }; #endif |