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/AnimationImporter.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/AnimationImporter.h')
-rw-r--r-- | source/blender/collada/AnimationImporter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/collada/AnimationImporter.h b/source/blender/collada/AnimationImporter.h index 61c220e4bbe..565fe183d02 100644 --- a/source/blender/collada/AnimationImporter.h +++ b/source/blender/collada/AnimationImporter.h @@ -89,6 +89,8 @@ private: int typeFlag; + std::string import_from_version; + enum lightAnim { // INANIMATE = 0, @@ -137,6 +139,7 @@ public: ~AnimationImporter(); + void set_import_from_version(std::string import_from_version); bool write_animation(const COLLADAFW::Animation* anim); // called on post-process stage after writeVisualScenes |