[Jderobot-admin] jderobot-r1019 - trunk/src/stable/libs/geometry/collada
eperdices en jderobot.org
eperdices en jderobot.org
Mar Oct 8 15:57:37 CEST 2013
Author: eperdices
Date: 2013-10-08 15:56:37 +0200 (Tue, 08 Oct 2013)
New Revision: 1019
Modified:
trunk/src/stable/libs/geometry/collada/colladaparser.cpp
trunk/src/stable/libs/geometry/collada/colladaparser.h
Log:
Corrected collada bug to be able to use more than one model at the same time
Modified: trunk/src/stable/libs/geometry/collada/colladaparser.cpp
===================================================================
--- trunk/src/stable/libs/geometry/collada/colladaparser.cpp 2013-10-08 12:47:10 UTC (rev 1018)
+++ trunk/src/stable/libs/geometry/collada/colladaparser.cpp 2013-10-08 13:56:37 UTC (rev 1019)
@@ -47,15 +47,17 @@
mesh->Scale(1/scalemap);
}
+
+ this->ite = 0;
}
- int ite = 0;
+
void ColladaParser::draw()
{
- if(ite==0){
- ite++;
+ if(this->ite==0){
+ this->ite++;
std::vector<std::string> listaNombres;
std::vector<unsigned int> listaTexturas;
for(int i = 0; i < this->mesh->getSubMeshCount();i++){
Modified: trunk/src/stable/libs/geometry/collada/colladaparser.h
===================================================================
--- trunk/src/stable/libs/geometry/collada/colladaparser.h 2013-10-08 12:47:10 UTC (rev 1018)
+++ trunk/src/stable/libs/geometry/collada/colladaparser.h 2013-10-08 13:56:37 UTC (rev 1019)
@@ -114,7 +114,11 @@
public: cv::Mat image;
+ private:
+ int ite;
+
+
};
}
More information about the Jderobot-admin
mailing list