3
$\begingroup$

I have a UIList with a property that uses the preview icon of an image as its icon. It works, but it doesn't update, unless the icon is updated somewhere else first, i.e. in the texture paint slots or the Image Editor'' selector. Is there a way to make it update?

edit- I was told that image previews are updated when a dependency update is triggered on them. Does anyone know how to do this in Python?

$\endgroup$
5
  • $\begingroup$ I don't know if this will help, but it might. Good luck! $\endgroup$
    – Shady Puck
    Commented Feb 7, 2016 at 13:17
  • $\begingroup$ Well this isn't a UIList problem, its an icon update problem. I'm very familiar with that tutorial. Thanks a lot for responding though. $\endgroup$
    – cmomoney
    Commented Feb 7, 2016 at 14:34
  • $\begingroup$ This is supported by the API. Giving a code-example that doesn't work properly would help here. $\endgroup$
    – ideasman42
    Commented Feb 8, 2016 at 3:16
  • $\begingroup$ I can't give a code example that doesn't work because my code works. I don't have any code that says "when this image is changed, update its preview" because I don't know how. That is what the question is. If you know how, I would be grateful if you shared. $\endgroup$
    – cmomoney
    Commented Feb 8, 2016 at 3:22
  • $\begingroup$ I would love to get an answer for that question too! :) $\endgroup$
    – ndee
    Commented Jul 11, 2016 at 20:17

0

You must log in to answer this question.

Browse other questions tagged .