Fixed the problem with the 3d models rendering when 2d images/sprites are present.