From da6a86b4117c827cb9a66f1a5e44825f6f1d14a0 Mon Sep 17 00:00:00 2001 From: Alezia Kurdis <60075796+AleziaKurdis@users.noreply.github.com> Date: Thu, 10 Sep 2020 00:11:50 -0400 Subject: [PATCH] Create Material without url This enhancement changes the behavior when a Material Entity is created using the Create App. Previously, if we left the URL null, no entity was created. With this fix, if we left the URL null, then the entity is created with "materialData" already set in materialURL (ready to use Material Data). --- scripts/system/create/edit.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/system/create/edit.js b/scripts/system/create/edit.js index 0de87e563c..ba410735e8 100644 --- a/scripts/system/create/edit.js +++ b/scripts/system/create/edit.js @@ -736,6 +736,9 @@ var toolBar = (function () { function handleNewMaterialDialogResult(result) { if (result) { var materialURL = result.textInput; + if (materialURL === "") { + materialURL = "materialData"; + } //var materialMappingMode; //switch (result.comboBox) { // case MATERIAL_MODE_PROJECTED: