[DF-1724] Moved creation of MaterialEditor to function, called at scene activation.