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).
This commit is contained in:
Alezia Kurdis 2020-09-10 00:11:50 -04:00 committed by GitHub
parent 44cc060200
commit da6a86b411
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: