提交 e66bcfe0 编写于 作者: M Mugen87

Editor: Fix material browser.

上级 1499ef3b
......@@ -661,4 +661,12 @@ select {
background: #222;
}
.Listbox .ListboxItem:hover {
background-color: rgba(21,60,94,0.5);
}
.Listbox .ListboxItem.active {
background-color: rgba(21,60,94,1);
}
}
......@@ -603,13 +603,14 @@ var SidebarMaterial = function ( editor ) {
material = new materialClasses[ materialClass.getValue() ]();
if ( material.type == "RawShaderMaterial" ) {
if ( material.type === "RawShaderMaterial" ) {
material.vertexShader = vertexShaderVariables + material.vertexShader;
}
editor.execute( new SetMaterialCommand( editor, currentObject, material, currentMaterialSlot ), 'New Material: ' + materialClass.getValue() );
editor.addMaterial( material );
// TODO Copy other references in the scene graph
// keeping name and UUID then.
// Also there should be means to create a unique
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册