Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to Undo causes a crash. [BUG] #13

Closed
NathanNegreiroMXT opened this issue Jun 29, 2021 · 2 comments
Closed

Trying to Undo causes a crash. [BUG] #13

NathanNegreiroMXT opened this issue Jun 29, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@NathanNegreiroMXT
Copy link

Describe the bug

If you paste a reference image in, and then try to Undo, blender Crashes.

To Reproduce

  1. Ctrl-Shift-V to paste in a reference image.
  2. Ctrl-Z to Undo.

Expected behavior

The reference image should be removed.

Platform

Operating System:

  • OS: Windows 10
  • Version: 20H2

Blender:

  • Version: 2.93.1

Screenshots/Screencast

N/A

Additional context

N/A

@NathanNegreiroMXT NathanNegreiroMXT added the bug Something isn't working label Jun 29, 2021
@thanhph111
Copy link
Collaborator

Thank you for your report.
I can reproduce it on Linux, both Blender 2.83 and 2.93. The bug comes from this line:
https://github.com/Yeetus3141/ImagePaste/blob/894d95be07e5495959132cf167dec72fce465293/__init__.py#L121
and these:
https://github.com/Yeetus3141/ImagePaste/blob/894d95be07e5495959132cf167dec72fce465293/__init__.py#L148-L150

These two operators belong to Blender, one from the core and one from the official Import Image as Plane add-on.

With operator bpy.ops.import_image.to_plane, the crash seem to only occur when I change the initial state of the .blend file before executing the operator.

I did some research and it turns out that the bug seems to be related to this planned undo system improvement. I find the Blender version 3.0 alpha less buggy.

So while waiting for the fix, we can use this stopgap: change the state of the scene (e.g., click outside the image) before undo. I may release a patch to temporarily handle it.

@thanhph111
Copy link
Collaborator

@NathanNegreiroMXT the new version has fixed this issue, feel free to let us know if it still happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants