Fixed a documentation issue in the shader node definition wizard

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

@ -1,9 +1,11 @@
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>
void main(){
//insert glsl code here
}

@ -35,6 +35,9 @@ 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