瀏覽代碼

Removed the code display button for nodes that don't have code.

Nehon 10 年之前
父節點
當前提交
76fe370cf1
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/editor/NodeToolBar.java

+ 3 - 0
sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/editor/NodeToolBar.java

@@ -25,6 +25,9 @@ public class NodeToolBar extends javax.swing.JPanel implements ComponentListener
     public NodeToolBar(NodePanel node) {
         initComponents();
         this.node = node;
+        if (node.getType() != NodePanel.NodeType.Fragment && node.getType() != NodePanel.NodeType.Vertex) {
+            remove(codeButton);
+        }
         node.addComponentListener(this);
     }