diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/editor/NodeToolBar.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/editor/NodeToolBar.java index 4ed8228b9..3c9380586 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/editor/NodeToolBar.java +++ b/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); }