Caused by4811b2d356which caused the event handler hack that is used to fire up the file browser from other operators to fail. Basically the context from before the file browser is opened gets stored and used later for executing the actual file read/write operation (in this case, saving image). This context storage is cleared when exiting an editor since4811b2d356, which is technically correct, but causes usage of NULLed context data in this case, because the file browser is exited before the file read/write operation is executed. For now I solved this by moving the fileselect handler to list of normal handlers, instead of modal ones.4811b2d356only touches list of modal handlers so we avoid the crash. Ideally we'd completely refactor how the file browser opening works to get rid of these event handler hacks. Note that I wouldn't be suprised if this causes other regressions, but I couldn't find one so worth a try.
3.4 KiB
3.4 KiB