diff WorldQuests.lua @ 80:5d33e98710a0 v1.4.2

- Fixed pin transitions between world map and flight map.
author Nenue
date Mon, 10 Apr 2017 16:44:33 -0400
parents fadf00b437fb
children 26d736fbfe67
line wrap: on
line diff
--- a/WorldQuests.lua	Mon Apr 10 13:14:29 2017 -0400
+++ b/WorldQuests.lua	Mon Apr 10 16:44:33 2017 -0400
@@ -582,9 +582,10 @@
 
     local questID, x, y = info.questId, info.x, info.y
     local pin = self:AcquirePin(info)
+
     if pin then
       print(pin.title, pin.isStale)
-      if pin:IsShown() and (layoutDirty or pin.isStale) then
+      if pin:IsShown() and (layoutDirty or pin.isStale or (pin.owningFrame ~= WorldMapFrame)) then
         local scaleFactor = SCALE_FACTORS[(pin.dataLoaded and not pin.filtered) and scaleConstant or 1]
         pin.owningFrame = WorldMapFrame
         pin:SetAnchor(WorldMapPOIFrame, x, y, self.hostWidth, self.hostHeight, scaleFactor)