summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2016-02-17 02:40:58 +0200
committerAndreyL ProductEngine <alihatskiy@productengine.com>2016-02-17 02:40:58 +0200
commit72685fe1cb6faffa648cc46259699097033a31e3 (patch)
treefe244c97db6dd3cbb078d1553f62715368a00185 /indra
parent58bb4116dbe4a8afd5df1a7d8db074b0a43fc8f8 (diff)
MAINT-6132 Fixed error on uploading models with texture
Diffstat (limited to 'indra')
-rw-r--r--indra/llprimitive/lldaeloader.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/llprimitive/lldaeloader.cpp b/indra/llprimitive/lldaeloader.cpp
index 9a1f8d09e8..9ce17ef276 100644
--- a/indra/llprimitive/lldaeloader.cpp
+++ b/indra/llprimitive/lldaeloader.cpp
@@ -851,9 +851,7 @@ bool LLDAELoader::OpenFile(const std::string& filename)
{
//no suitable slm exists, load from the .dae file
DAE dae;
-
- std::string fileURI = "from memory"; // set to a null device
- domCOLLADA* dom = dae.openFromMemory(fileURI, preprocessDAE(filename).c_str());
+ domCOLLADA* dom = dae.openFromMemory(filename, preprocessDAE(filename).c_str());
if (!dom)
{
@@ -881,7 +879,7 @@ bool LLDAELoader::OpenFile(const std::string& filename)
daeInt count = db->getElementCount(NULL, COLLADA_TYPE_MESH);
- daeDocument* doc = dae.getDoc(fileURI);
+ daeDocument* doc = dae.getDoc(filename);
if (!doc)
{
LL_WARNS() << "can't find internal doc" << LL_ENDL;