Fixes a performance regression when disabling the shadowPath property on the center view.
Added shadow optimization for when displaying shadow path to prevent unnecessary path calculations.
Merge commit '27c952e885da77e851b55d201b2374ffe445e18c' into barz-master