View Single Post
Old 09-06-12, 07:49 AM   #2
Irongunner
A Deviate Faerie Dragon
Join Date: Mar 2011
Posts: 10
For now my workaround looks like this. Strangely the problem does not occur inside OnUpdate(..):

Lua Code:
  1. -- PostCastStart / PostChannelStart:
  2. -- replace: castbar.Dummy.Icon:SetTexture(castbar.Icon:GetTexture())
  3. -- by: castbar.Dummy.IconTexture = nil
  4.      
  5. -- PostCastSucceeded / PostCastStop / PostChannelStop:
  6. -- add castbar.Dummy.Icon:SetTexture(castbar.Dummy.IconTexture)
  7.        
  8. local coreCastbarUpdate = function(castbar, elapsed)
  9.     -- insert code from oUF core castbar.lua onUpdate(..) here
  10. end
  11.      
  12. oUF_Iron.OnUpdate = function(castbar, elapsed)
  13.     if castbar.Dummy.IconTexture == nil then
  14.         local texture = castbar.Icon:GetTexture()
  15.         if texture ~= nil then
  16.             castbar.Dummy.IconTexture = texture
  17.         end
  18.     end
  19.     coreCastbarUpdate(castbar, elapsed)
  20. end
  21.      
  22. -- Register cb.OnUpdate = oUF_Iron.OnUpdate at castbar creation
Irongunner is offline   Reply With Quote