Fix COLLADA build error. This was caused by the difference in OpenCollada versions...
authorArystanbek Dyussenov <arystan.d@gmail.com>
Mon, 7 Jun 2010 20:07:31 +0000 (20:07 +0000)
committerArystanbek Dyussenov <arystan.d@gmail.com>
Mon, 7 Jun 2010 20:07:31 +0000 (20:07 +0000)
source/blender/collada/DocumentExporter.cpp

index b474f65ac0d250e16ea812d55ad0f1ddf87a0093..01a41459a1d36c3fd14ef2803d82443db47b1a9c 100644 (file)
@@ -1719,7 +1719,11 @@ public:
                                // most widespread de-facto standard.
                                texture.setProfileName("FCOLLADA");
                                texture.setChildElementName("bump");                            
+#ifdef WIN32   // currently, Windows builds are using revision 746 of OpenCollada while Linux and Mac are using an older revision 721
                                ep.addExtraTechniqueColorOrTexture(COLLADASW::ColorOrTexture(texture));
+#else
+                               ep.setExtraTechniqueColorOrTexture(COLLADASW::ColorOrTexture(texture));
+#endif
                        }
                }
                // performs the actual writing