Fixed compilation for non-textured objects