Rename Mode7 to more appropriate name

This commit is contained in:
Phillip Stephens 2016-09-03 00:23:39 -07:00
parent 44cd8596df
commit 12e6702389
2 changed files with 6 additions and 6 deletions

View File

@ -183,7 +183,7 @@ void Material::AddTextureAnim(Stream& out,
" new_nodetree.links.new(node.outputs[0], soc_to)\n\n", " new_nodetree.links.new(node.outputs[0], soc_to)\n\n",
idx); idx);
break; break;
case UVAnimation::Mode::WhoMustNotBeNamed: case UVAnimation::Mode::CylinderEnvironment:
out.format("for link in list(tex_links):\n" out.format("for link in list(tex_links):\n"
" if link.from_node.label == 'MTX_%u':\n" " if link.from_node.label == 'MTX_%u':\n"
" tex_links.remove(link)\n" " tex_links.remove(link)\n"
@ -1275,7 +1275,7 @@ MaterialSet::Material::UVAnimation::UVAnimation(const std::string& gameFunction,
mode = Mode::Model; mode = Mode::Model;
else if (!gameFunction.compare("RetroUVMode7NodeN")) else if (!gameFunction.compare("RetroUVMode7NodeN"))
{ {
mode = Mode::WhoMustNotBeNamed; mode = Mode::CylinderEnvironment;
if (gameArgs.size() < 2) if (gameArgs.size() < 2)
Log.report(logvisor::Fatal, "Mode7 UV anim requires 2 arguments"); Log.report(logvisor::Fatal, "Mode7 UV anim requires 2 arguments");
vals[0] = gameArgs[0].vec[0]; vals[0] = gameArgs[0].vec[0];

View File

@ -264,7 +264,7 @@ struct MaterialSet : BigDNA
HStrip, HStrip,
VStrip, VStrip,
Model, Model,
WhoMustNotBeNamed, CylinderEnvironment,
Eight Eight
} mode; } mode;
float vals[9]; float vals[9];
@ -286,7 +286,7 @@ struct MaterialSet : BigDNA
vals[3] = reader.readFloatBig(); vals[3] = reader.readFloatBig();
break; break;
case Mode::Rotation: case Mode::Rotation:
case Mode::WhoMustNotBeNamed: case Mode::CylinderEnvironment:
vals[0] = reader.readFloatBig(); vals[0] = reader.readFloatBig();
vals[1] = reader.readFloatBig(); vals[1] = reader.readFloatBig();
break; break;
@ -321,7 +321,7 @@ struct MaterialSet : BigDNA
writer.writeFloatBig(vals[3]); writer.writeFloatBig(vals[3]);
break; break;
case Mode::Rotation: case Mode::Rotation:
case Mode::WhoMustNotBeNamed: case Mode::CylinderEnvironment:
writer.writeFloatBig(vals[0]); writer.writeFloatBig(vals[0]);
writer.writeFloatBig(vals[1]); writer.writeFloatBig(vals[1]);
break; break;
@ -351,7 +351,7 @@ struct MaterialSet : BigDNA
case Mode::VStrip: case Mode::VStrip:
return __isz + 20; return __isz + 20;
case Mode::Rotation: case Mode::Rotation:
case Mode::WhoMustNotBeNamed: case Mode::CylinderEnvironment:
return __isz + 12; return __isz + 12;
case Mode::Eight: case Mode::Eight:
return __isz + 40; return __isz + 40;