MachineMuse, remember, there's TWO model formats supported!

This commit is contained in:
Christian committed 2013-09-05 09:14:10 -04:00
1 parent e962c2a94d
commit 0443ef5a9e
2 files changed
+43 -4

No files matched your search

@@ -169,6 +169,7 @@ public class WavefrontObject implements IModelCustom
}
}
@Override
public void renderAll()
{
Tessellator tessellator = Tessellator.instance;
@@ -194,6 +195,7 @@ public class WavefrontObject implements IModelCustom
}
}
@Override
public void renderOnly(String... groupNames)
{
for (GroupObject groupObject : groupObjects)
@@ -221,6 +223,7 @@ public class WavefrontObject implements IModelCustom
}
}
@Override
public void renderPart(String partName)
{
for (GroupObject groupObject : groupObjects)
@@ -244,18 +247,17 @@ public class WavefrontObject implements IModelCustom
public void renderAllExcept(String... excludedGroupNames)
{
boolean exclude;
for (GroupObject groupObject : groupObjects)
{
exclude=false;
boolean skipPart=false;
for (String excludedGroupName : excludedGroupNames)
{
if (excludedGroupName.equalsIgnoreCase(groupObject.name))
{
exclude=true;
skipPart=true;
}
}
if(!exclude)
if(!skipPart)
{
groupObject.render();
}