mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
fixes for reload and flush
This commit is contained in:
parent
f6dc694bd4
commit
1edfbcf447
7 changed files with 88 additions and 39 deletions
|
|
@ -243,6 +243,10 @@ Material::Material()
|
|||
mReverbSoundOcclusion = 1.0;
|
||||
}
|
||||
|
||||
void Material::onImageAssetChanged()
|
||||
{
|
||||
reload();
|
||||
}
|
||||
|
||||
void Material::initPersistFields()
|
||||
{
|
||||
|
|
@ -857,3 +861,4 @@ DEF_IMAGEASSET_ARRAY_BINDS(Material, AOMap);
|
|||
DEF_IMAGEASSET_ARRAY_BINDS(Material, MetalMap);
|
||||
DEF_IMAGEASSET_ARRAY_BINDS(Material, GlowMap);
|
||||
DEF_IMAGEASSET_ARRAY_BINDS(Material, DetailNormalMap);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue