Browse Source

Merge pull request #4 from jMonkeyEngine/master

Merge branch "jmonkeyengine/master" into "scenecomposer/master"
Dokthar 10 years ago
parent
commit
13adc2ec9f

+ 1 - 1
jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefWizardIterator.java

@@ -102,7 +102,7 @@ public final class SNDefWizardIterator implements WizardDescriptor.Instantiating
 
 
         //Get the template and convert it:
         //Get the template and convert it:
         FileObject tplSnd = Templates.getTemplate(wizard);
         FileObject tplSnd = Templates.getTemplate(wizard);
-        FileObject tplShd = tplSnd.getParent().getChildren()[1];
+        FileObject tplShd = tplSnd.getParent().getChildren()[0];
 
 
         DataObject templateSnd = DataObject.find(tplSnd);
         DataObject templateSnd = DataObject.find(tplSnd);
         DataObject templateShd = DataObject.find(tplShd);
         DataObject templateShd = DataObject.find(tplShd);