update() crash Blender 2.26 ?

The new version of MakeHuman is ready…but…
at the last moment we have found a strange bug
(it’s in the old version too, but we don’t see it).

Only in the 2.26, and only when a morphing is applied,
if you try to render the scene, Blender crash! If you
apply a morphing and exit to script, the render crash too…

I think the problem can be the update function:

if BL_VERSION<=223:
			# update() is available in 223 too, but makes the mesh invisible
			# so just return the new mesh with PutRaw
			NMesh.PutRaw(actual_mesh, result)
		else:
			# for 2.25, only update the mesh, don't use PutRaw
			actual_mesh.update()

Anyone have a notice about a update() bug or problem?

It seems the update() don’t preserve the material !!! :o

Having the same probs. with the update() func. I found this in the forum:

https://blenderartists.org/forum/viewtopic.php?t=10602&highlight=update

Does anybody have any ideas what to do about it and getting the update() func. to work ?

btw. cant wait to see the new vers. of MakeHuman !!!

Shifter

Thx!!
I’m working to “isolate” the bug and send it to Blender heads.
I’ve reproduced it with this simple script applied on a UVmapped
sphere named “Base”:

import Blender
from Blender import NMesh
def morph(test_obj):
		test_mesh = NMesh.GetRaw(test_obj)
		vertex_list = test_mesh.verts
		
		for vertex in vertex_list:
			
			vertex.co[0] = vertex.co[0] *1.5
			vertex.co[1] = vertex.co[1] *1.5
			vertex.co[2] = vertex.co[2]	*1.5
					 
		test_mesh.update()
	
		#Window.RedrawAll()

morph("Base")

unfortunately, because this bug, the next version of MH will be without materials (or with materials, but only for Blender < 2.25)… :frowning: