History

fix for add to world after upload name change

Stephen Birarda committed 10 years ago

Commit 625032f1 parent 49ce6a82 files · +4 −4Browse files

Showing the changes to interface/src/scripting/AssetMappingsScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/AssetMappingsScriptingInterface.cpp+2−2
@@ -54,7 +54,7 @@ void AssetMappingsScriptingInterface::setMapping(QString path, QString hash, QJS · 53 unmodified lines
54 54
55 connect(request, &SetMappingRequest::finished, this, [this, callback](SetMappingRequest* request) mutable {55 connect(request, &SetMappingRequest::finished, this, [this, callback](SetMappingRequest* request) mutable {
56 if (callback.isCallable()) {56 if (callback.isCallable()) {
57 QJSValueList args { uint8_t(request->getError()) };57 QJSValueList args { uint8_t(request->getError()), request->getPath() };
58 callback.call(args);58 callback.call(args);
59 }59 }
60 60
@@ -150,7 +150,7 @@ void AssetMappingsScriptingInterface::getAllMappings(QJSValue callback) { · 89 unmodified lines
150 }150 }
151 151
152 if (callback.isCallable()) {152 if (callback.isCallable()) {
153 QJSValueList args { uint8_t(request->getError()) };153 QJSValueList args { uint8_t(request->getError()), map };
154 callback.call(args);154 callback.call(args);
155 }155 }
156 156