Page MenuHome

Open Image button added to Mask Stencil Image panel
ClosedPublic

Authored by Craig Jones (craig_jones) on Jun 14 2017, 4:54 AM.

Details

Summary

I have been always needing to open existing images in the UV/Image Editor and then choose them from the Image Browser dropdown in the Mask Stencil Image panel - and after frustration, I realized that I might be able to copy the python from the UV?Image Editor header and paste it here.

Works like a charm, and feels like it should have been there already but was missed. I hope this is accepted.

Diff Detail

Repository
rB Blender

Event Timeline

This revision is now accepted and ready to land.Jun 30 2017, 2:34 AM

Ideally we should use: col.template_ID(ipaint, "stencil_image", new="image.new", open="image.open") however this needs gen_context = 'PAINT_STENCIL' one thing I have not tried yet is using context_pointer_set but this will have to wait to next week.

This revision was automatically updated to reflect the committed changes.