Browse Source

Fixed a documentation issue in the shader node definition wizard

Nehon 10 years ago
parent
commit
6555c28682

+ 8 - 6
jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/ShaderNodeSource

@@ -1,9 +1,11 @@
-<#list inputParams as param>                
-//@input ${param[0]} ${param[1]} ${param[2]}
-</#list>
-<#list outputParams as param>                
-//@output ${param[0]} ${param[1]} ${param[2]}
-</#list>            
+          
 void main(){
+    <#list inputParams as param>                
+    //@input ${param[0]} ${param[1]} ${param[2]}
+    </#list>
+    <#list outputParams as param>                
+    //@output ${param[0]} ${param[1]} ${param[2]}
+    </#list>  
+
     //insert glsl code here
 }

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

@@ -34,7 +34,10 @@ public final class SNDefVisualPanel2 extends JPanel {
     }
 
     public String[][] getData() {
-
+       
+        varTable.editCellAt(-1, -1);
+        varTable.getSelectionModel().clearSelection();
+       
         DefaultTableModel model = (DefaultTableModel) varTable.getModel();
         String[][] data = new String[model.getRowCount()][3];
         for (int i = 0; i < model.getRowCount(); i++) {