mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
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:
parent
44cc060200
commit
da6a86b411
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue