Page MenuHome

loosing Bmesh data wioth remove doubles
Closed, ArchivedPublic

Description

windows 32 bits
video G31 G33 intel

did discussed this in python forum and it might a bug with Bmesh



included file with script in text editor


run the script then in add menu mesh select weave at bottom

change the variable in tool pro panel called warp number
before last button

as you increase it at 3 then it crashes saying that bmesh was lost

it does work on the first loop but on second one there is an error on the remove doubles for Bmesh data




thanks
happy blendering




Event Timeline

sorry forgot to to mention this was on 2.67b SVN

I would guess the problem is accessing mesh data after its removed, however this isnt crashing for me, will check further.

Cant redo in 2.67b or r57344

Ricky: there is no such "2.67b SVN". You mean, the binary we released on blender.org?


yes i use the official release 2.67b from blender org

just got latest SVN i57299
and same error


it looks like when it goes first time in loop it will erase doubles
but the second time it tells me that there are no data

error is

zz1.py", line 285, in execute
File "C:\Users\RJ\0blend25\00aaaujune20121\ropemaking2\weavescript1\zz1.blend\
zz1.py", line 51, in adddata1
ReferenceError: BMesh data of type BMVert has been removed

it looks like after doing a remove doubles it does not have any data left for bmverts!

it should be possible to remove doubles any number of time even if there are no doubles!



thanks





Checked the script.

- line 203 adds to 'verts'.
- line 282 removes doubles.
- line 285 passes 'verts' to adddata1.
- line 51 does an invalid access.

You need to re-create 'verts' list after remove doubles since it contains data that was removed.

closing.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Archived.Jun 13 2013, 1:42 AM