Browse Source

fixed bug in terrain editor, submitting new texture before scale causing error in shader

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8923 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
bre..ns 13 years ago
parent
commit
324596ba2e

+ 1 - 1
jme3-terrain-editor/src/com/jme3/gde/terraineditor/TerrainEditorTopComponent.java

@@ -1376,8 +1376,8 @@ public final class TerrainEditorTopComponent extends TopComponent implements Sce
             addRow(new Object[]{"", newIndex, null, scale}); // add to the table model
             addRow(new Object[]{"", newIndex, null, scale}); // add to the table model
 
 
             // and add it to the actual material
             // and add it to the actual material
-            setTexture(newIndex, (String) null);
             setTextureScale(newIndex, scale);
             setTextureScale(newIndex, scale);
+            setTexture(newIndex, (String) null);
             editorController.enableTextureButtons();
             editorController.enableTextureButtons();
         }
         }