Fixed a documentation issue in the shader node definition wizard

experimental
Nehon 10 years ago
parent 76fe370cf1
commit 2670026552
  1. 14
      sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/ShaderNodeSource
  2. 5
      sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefVisualPanel2.java

@ -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
}

@ -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++) {

Loading…
Cancel
Save