Fix material info duplication on open/close.

This commit is contained in:
kovacsv 2018-12-16 14:17:11 +01:00
parent dd240120b5
commit c2154f375b

View File

@ -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);