mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
supress deletion of temp mateiral created by the editor
stops it from crashing out swapping back and forth into the mat editor not a proper fix, just ensures we have *something* for the weekend if we don't do a better job.
This commit is contained in:
parent
9dd9e9fae5
commit
98941702a7
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ function MaterialEditorGui::establishMaterials(%this)
|
||||||
singleton CustomMaterial( materialEd_justAlphaMaterial )
|
singleton CustomMaterial( materialEd_justAlphaMaterial )
|
||||||
{
|
{
|
||||||
mapTo = "matEd_mappedMatB";
|
mapTo = "matEd_mappedMatB";
|
||||||
texture[0] = materialEd_previewMaterial.diffuseMap[0];
|
texture[0] = materialEd_previewMaterial.getdiffuseMap(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
//Custom shader to allow the display of just the alpha channel.
|
//Custom shader to allow the display of just the alpha channel.
|
||||||
|
|
@ -176,7 +176,7 @@ function MaterialEditorGui::quit(%this)
|
||||||
// Now we can delete the preview materials and shaders
|
// Now we can delete the preview materials and shaders
|
||||||
// knowing that there are no matinstances using them.
|
// knowing that there are no matinstances using them.
|
||||||
matEdCubeMapPreviewMat.delete();
|
matEdCubeMapPreviewMat.delete();
|
||||||
materialEd_previewMaterial.delete();
|
//materialEd_previewMaterial.delete();
|
||||||
materialEd_justAlphaMaterial.delete();
|
materialEd_justAlphaMaterial.delete();
|
||||||
materialEd_justAlphaShader.delete();
|
materialEd_justAlphaShader.delete();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue