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,
|
isOpen : false,
|
||||||
open : 'images/info.png',
|
open : 'images/info.png',
|
||||||
close : 'images/info.png',
|
close : 'images/info.png',
|
||||||
onOpen : function (content, material) {
|
onOpen : function (contentDiv, material) {
|
||||||
var table = new InfoTable (content);
|
contentDiv.empty ();
|
||||||
|
var table = new InfoTable (contentDiv);
|
||||||
table.AddColorRow ('Ambient', material.ambient);
|
table.AddColorRow ('Ambient', material.ambient);
|
||||||
table.AddColorRow ('Diffuse', material.diffuse);
|
table.AddColorRow ('Diffuse', material.diffuse);
|
||||||
table.AddColorRow ('Specular', material.specular);
|
table.AddColorRow ('Specular', material.specular);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user