py api: BMesh.from_object() was using the derivedFinal, which isn't always available...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 21 Nov 2012 00:31:47 +0000 (00:31 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 21 Nov 2012 00:31:47 +0000 (00:31 +0000)
commitf43e75c4d6decffe813f28b083a54158758ff5f9
treed9d476632893be940d58607f22fecf992fa5bc53
parent1b13f4428bba33cafa3c71904afed50871e4415f
py api: BMesh.from_object() was using the derivedFinal, which isn't always available - or may not have UV data if in the wireframe view.

update the function to calculate the derived mesh with bmesh data-mask each time.

resolves bug [#33205] Bmesh "from_object" gives "no usable mesh data".

also found 'mesh_build_data' could run with non mesh objects and fail silently - add an assert.
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/python/bmesh/bmesh_py_types.c