Commit 0dbbf97c authored by Ivan Dages's avatar Ivan Dages
Browse files

material modification : start with current material

parent 35be6e80
......@@ -781,7 +781,7 @@ public class EditorMenuBar extends MenuBar {
if (Nomad3DEditor.getInstance().getModel() == null || Nomad3DEditor.getInstance().getModel().getSelection().isEmpty()) {
return;
}
PhongMaterial oldMaterial = Component.DEFAULT_MATERIAL;
PhongMaterial oldMaterial = Nomad3DEditor.getInstance().getModel().getSelection().iterator().next().getMaterial();
GridPane scenePane = new GridPane();
scenePane.setAlignment(Pos.CENTER);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment