Reverted changes in RenderManager from previous commit as they were not meant to be committed and unrelated to the change

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9748 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 13 years ago
parent 5111fd8b66
commit eab37f7fce
  1. 3
      engine/src/core/com/jme3/renderer/RenderManager.java

@ -500,14 +500,11 @@ public class RenderManager {
//else the geom is not rendered
if (forcedTechnique != null) {
if (g.getMaterial().getMaterialDef().getTechniqueDef(forcedTechnique) != null) {
RenderState s = forcedRenderState;
forcedRenderState = g.getMaterial().getMaterialDef().getTechniqueDef(forcedTechnique).getRenderState();
tmpTech = g.getMaterial().getActiveTechnique() != null ? g.getMaterial().getActiveTechnique().getDef().getName() : "Default";
g.getMaterial().selectTechnique(forcedTechnique, this);
// use geometry's material
g.getMaterial().render(g, this);
g.getMaterial().selectTechnique(tmpTech, this);
forcedRenderState = s;
//Reverted this part from revision 6197
//If forcedTechnique does not exists, and frocedMaterial is not set, the geom MUST NOT be rendered
} else if (forcedMaterial != null) {

Loading…
Cancel
Save