Two small ShaderNodes fixes :
- clicking the technique combo box when there was only one technique was crashong the editor
- malformed def files was crashing the editor, we now wheck for missing or empty blocks
logger.log(Level.WARNING,"No Technique selected, taking the first one!");/* Don't be over verbose: When there's only one Element, you can't select itself again, thus null */
}
techniqueComboBox.setSelectedIndex(0);/* Take the first one available */
}else{
logger.log(Level.WARNING,"No Techniques known for this MaterialDef. Please add one using the button to the right!");