only write tex plugin and envmap data to file if texture is the right type. This takes care of lingering errors with missing texture plugins after texture type is changed
This commit is contained in:
parent
1914ed72b2
commit
fa765a554c
@ -1332,9 +1332,9 @@ static void write_textures(WriteData *wd, ListBase *idbase)
|
||||
if (tex->id.properties) IDP_WriteProperty(tex->id.properties, wd);
|
||||
|
||||
/* direct data */
|
||||
if(tex->plugin) writestruct(wd, DATA, "PluginTex", 1, tex->plugin);
|
||||
if(tex->type == TEX_PLUGIN && tex->plugin) writestruct(wd, DATA, "PluginTex", 1, tex->plugin);
|
||||
if(tex->coba) writestruct(wd, DATA, "ColorBand", 1, tex->coba);
|
||||
if(tex->env) writestruct(wd, DATA, "EnvMap", 1, tex->env);
|
||||
if(tex->type == TEX_ENVMAP && tex->env) writestruct(wd, DATA, "EnvMap", 1, tex->env);
|
||||
|
||||
/* nodetree is integral part of texture, no libdata */
|
||||
if(tex->nodetree) {
|
||||
|
Loading…
Reference in New Issue
Block a user