From 50fb4df1f0d7f19459f98bf60bb49751471f223b Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Sat, 28 Aug 2021 15:54:21 -0500 Subject: [PATCH 1/2] kill off glowchan leftovers --- .../scripts/materialEditor.ed.tscript | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript b/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript index 3d24330c7..e1bb86cab 100644 --- a/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript +++ b/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript @@ -1059,7 +1059,6 @@ function MaterialEditorGui::guiSync( %this, %material ) %this.getRoughChan((%material).RoughnessChan[%layer]); %this.getAOChan((%material).AOChan[%layer]); %this.getMetalChan((%material).metalChan[%layer]); - %this.getGlowChan((%material).glowChan[%layer]); %this.preventUndo = false; } @@ -1081,11 +1080,7 @@ function MaterialEditorGui::getMetalChan(%this, %channel) %guiElement = metalChanBtn @ %channel; %guiElement.setStateOn(true); } -function MaterialEditorGui::getGlowChan(%this, %channel) -{ - %guiElement = glowChanBtn @ %channel; - %guiElement.setStateOn(true); -} + //======================================= // Material Update Functionality @@ -2420,12 +2415,6 @@ function MaterialEditorGui::setMetalChan(%this, %value) MaterialEditorGui.guiSync( materialEd_previewMaterial ); } -function MaterialEditorGui::setGlowChan(%this, %value) -{ - MaterialEditorGui.updateActiveMaterial("glowChan[" @ MaterialEditorGui.currentLayer @ "]", %value); - MaterialEditorGui.guiSync( materialEd_previewMaterial ); -} - function MaterialEditorGui::saveCompositeMap(%this) { %saveAs = ""; From cabfeea76bcb85dccc0fc3a89d75adfa309acda1 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Sat, 28 Aug 2021 16:20:58 -0500 Subject: [PATCH 2/2] nother stray --- .../game/tools/materialEditor/scripts/materialEditor.ed.tscript | 1 - 1 file changed, 1 deletion(-) diff --git a/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript b/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript index e1bb86cab..c3acecec6 100644 --- a/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript +++ b/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript @@ -2443,7 +2443,6 @@ function MaterialEditorGui::saveCompositeMap(%this) %roughMap = %material.getRoughMap(%layer); %aoMap = %material.getAOMap(%layer); %metalMap = %material.getMetalMap(%layer); - %glowMap = %material.getGlowMap(%layer); %roughness = %material.RoughnessChan[%layer]; %ao = %material.AOChan[%layer];