reverted to S3 for model URL

This commit is contained in:
Elisa Lupin-Jimenez 2018-02-02 15:36:28 -08:00
parent d20ff0955c
commit e2bf8ad231
4 changed files with 5 additions and 5 deletions

View file

@ -183,7 +183,7 @@ Windows.ScrollingWindow {
if (defaultURL.endsWith(".jpg") || defaultURL.endsWith(".png")) {
var name = assetProxyModel.data(treeView.selection.currentIndex);
var modelURL = "../../meshes/images/default-image-model.fbx";
var modelURL = "https://hifi-content.s3.amazonaws.com/DomainContent/production/default-image-model.fbx";
var textures = JSON.stringify({ "tex.picture": defaultURL});
var shapeType = "box";
var dynamic = false;

View file

@ -184,7 +184,7 @@ Rectangle {
if (defaultURL.endsWith(".jpg") || defaultURL.endsWith(".png")) {
var name = assetProxyModel.data(treeView.selection.currentIndex);
var modelURL = "../../../meshes/images/default-image-model.fbx";
var modelURL = "https://hifi-content.s3.amazonaws.com/DomainContent/production/default-image-model.fbx";
var textures = JSON.stringify({ "tex.picture": defaultURL});
var shapeType = "box";
var dynamic = false;

View file

@ -6525,7 +6525,7 @@ void Application::addAssetToWorldAddEntity(QString filePath, QString mapping) {
QJsonObject textures {
{"tex.picture", QString("atp:" + mapping) }
};
properties.setModelURL("qrc:///snapshot/snapshot.fbx");
properties.setModelURL("https://hifi-content.s3.amazonaws.com/DomainContent/production/default-image-model.fbx");
properties.setTextures(QJsonDocument(textures).toJson(QJsonDocument::Compact));
properties.setShapeType(SHAPE_TYPE_BOX);
} else {

View file

@ -540,8 +540,8 @@ var toolBar = (function () {
});
addButton("newImageButton", "web-01.svg", function () {
var IMAGE_MODEL = Script.resourcesPath() + "meshes/images/default-image-model.fbx";
var DEFAULT_IMAGE = Script.resourcesPath() + "snapshot/img/no-image.jpg";
var IMAGE_MODEL = "https://hifi-content.s3.amazonaws.com/DomainContent/production/default-image-model.fbx";
var DEFAULT_IMAGE = "https://hifi-content.s3.amazonaws.com/DomainContent/production/no-image.jpg";
createNewEntity({
type: "Model",
dimensions: {