Page MenuHome

Import bpy makes mesh duplicate when changing location
Closed, ResolvedPublic


System Information
Operating system:
Windows 10 x64

Blender Version
Date: 2018-11-29
Hash: 43e7c5dd434
Branch: blender 2.8 (Beta)

Date: 2017-9-11
Hash: 5bc8ac9
Branch: blender 2.79 (Official Release)

Short description of error
Running import bpy in text editor will make any mesh duplicate when location or rotation is changed.

Exact steps for others to reproduce the error
1: Type and run import bpy
2: Add any primitive mesh
3: Change the location or rotation of mesh and watch it make duplicates.



Event Timeline

Zachary (AFWS) renamed this task from Moving cube makes duplicates to Import bpy makes mesh duplicate when changing location.
Stephen Swaney (stiv) triaged this task as Needs Information from User priority.

Seems OK on Linux 2.80 beta daily hash 26d5a3625ed
Please attach a .blend showing the problem and mention your graphics card and driver

@Stephen Swaney (stiv)

Not sure a .blend will do much good. It's only like 3 or 4 steps and the only thing a .blend would do is have import bpy in text editor.

Here's a video.

a) a .blend is always nice in case you have some weird settings
b) from your original screenshot, the 'duplicates' look like drawing artifacts
c) please mention your video card and driver

b) from your original screenshot, the 'duplicates' look like drawing artifacts
c) please mention your video card and driver

This isn't drawing artifacts. Look at the screenshot again, the outliner shows 10 duplicates and mesh data shows 161. It got duplicated 161 times. You can also watch the mesh data number changing in the video.

GTX 950M, 398.82

Brecht Van Lommel (brecht) raised the priority of this task from Needs Information from User to Confirmed, Medium.

This seems like an error in the undo system, first guess would be it's related to the new unified stack so assigning to @Campbell Barton (campbellbarton).

Hm, interesting :)
I can confirm this. For me this can already be achieved by just typing in the text editor (could be "foo", "bar" whatever doesnt need to be valid python). Dont even have to Run Script.
Havent looked at the code, seems like undo/redo queue is somewhat intermangled/garbled. (you can also observe the text getting shorter - as if an undo in the text editor was performed...)

Since this is undo/redo related, I would like to ask @Campbell Barton (campbellbarton) to have a look...

oops, guess I had this browser tab open and did not notice this was triaged already, sorry for the noise...

This seems to be fixed in master, cannot reproduce anymore...
(first thought T66172 was a duplicate I could merge, but fortunately this very report here seems to be resolved...)

(@Zachary (AFWS): feel free to comment again/reopen if issues persist...)