Image Occlussion Patch non overlapping occlusions issue

Issue #8 new
Former user created an issue

After patching Image Occlusion, cards that addon creates with non-overlapping occlusions button, does not have the svg file in the 'answer' field. The result is that the hidden objects in the front side of the cards appears all together in the back side. Is it intended? if so, how to fix this?

Comments (2)

  1. Henry Townshend

    found it. in the add notes.py

    def add_QA_note(col, fname_q, fname_a, tags, fname_svg,
                    fname_original, header, footer, did):
    
        m = col.models.byName(IMAGE_QA_MODEL_NAME)
        m['did'] = did
        n = notes.Note(col, model=m)
        n["Question"]=fname2img(fname_q)
        n["Footer"]=footer
        n["Header"]=header
        n["Original Image"]=fname2img(fname_original)
        n["SVG"]=fname2img(fname_svg)
        n["Answer"]=fname2img(fname_a) #add to restore original behavior
    
  2. Mahdi Saravi repo owner

    Hi Henry I think bitbucket has restricted me (perhaps Iranians) from accessing the site, and i have not any VPN or proxy to change my ip. i dont now why, and at now i have not access to both known repository sites (Github and bibucket), and i reply via email.

    I have forgotten to add that line, and because i am not use non overlapping cards button, i was not aware of the problem. thank for your work and feedback. i will put the fixed file on the anki add-on site. Regards Saravi

  3. Log in to comment