From 76fe370cf10bb9cf2885475ef70306b5747d1a05 Mon Sep 17 00:00:00 2001 From: Nehon Date: Wed, 11 Feb 2015 22:47:38 +0100 Subject: [PATCH] Removed the code display button for nodes that don't have code. --- .../com/jme3/gde/materialdefinition/editor/NodeToolBar.java | 3 +++ 1 file changed, 3 insertions(+) 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); }