Fix material info duplication on open/close.
This commit is contained in:
parent
dd240120b5
commit
c2154f375b
@ -226,8 +226,9 @@ ImporterApp.prototype.GenerateMenu = function ()
|
||||
isOpen : false,
|
||||
open : 'images/info.png',
|
||||
close : 'images/info.png',
|
||||
onOpen : function (content, material) {
|
||||
var table = new InfoTable (content);
|
||||
onOpen : function (contentDiv, material) {
|
||||
contentDiv.empty ();
|
||||
var table = new InfoTable (contentDiv);
|
||||
table.AddColorRow ('Ambient', material.ambient);
|
||||
table.AddColorRow ('Diffuse', material.diffuse);
|
||||
table.AddColorRow ('Specular', material.specular);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user