Only search projects.blender.org
Log In
New Account
Home
My Page
Projects
Blender 2.x BF release
Summary
Activity
Tracker
SCM
Files
Blender 2.6 Bug Tracker: Browse
[#25648] Incorrect assignment of vertex groups in OBJ importer
Date:
2011-01-15 01:16
Priority:
3
State:
Closed
Submitted by:
Lawrence D'Oliveiro (
ldo
)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Python
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
Summary:
Incorrect assignment of vertex groups in OBJ importer
Detailed description
When importing a complex mesh (e.g. exported from MakeHuman), the vertex group assignments don't come out correct. It appears there is some bug deeper down in Blender where, if you create each vertex group in turn and assign vertices to it before creating the next one, the assignments don't come out correct.
The enclosed patch works around this by creating all the groups up front, and then assigning vertices to them.
Other scripts may possibly be affected by this bug as well.
Followup
Message
Date
: 2011-01-15 16:19
Sender
:
Ton Roosendaal
No time to investigate this, but isn't it more handy to post it as comment for the previous bug report? It seems to be related.
Date
: 2011-01-15 19:56
Sender
:
Campbell Barton
applied patch with minor change r1408.
Date
: 2011-01-15 22:24
Sender
:
Lawrence D'Oliveiro
You have managed to mix up patchsets for two different bug reports. The patch you just applied is part of the patchset for this other bug report
http://projects.blender.org/tracker/?func=detail&atid=498&aid=25641&group_id=9
Just to be clear, that bug was about Python scripts dying because the API for assigning vertex groups had changed in an incompatible way. This bug report is about, after applying that fix, the fact that vertex groups assignments can still be done incorrectly. The patch on this bug report is not a fix for the problem, just a workaround. The real bug lies deeper within Blender.
Date
: 2011-01-16 22:20
Sender
:
Lawrence D'Oliveiro
Now that I try to reproduce it, I can’t seem to hit the problem. I have attached an example OBJ mesh exported from MakeHuman—this is the kind of thing where I thought I hit the problem before: if I uncheck “Object” and “Group” but leave “Poly Groups” enabled (so the OBJ object comes in as a single Blender object with face groups converted to vertex groups), and then looked at the vertex groups at the toes, they seemed to be randomly attached to vertices further up the body. But now, though I’ve tried several different imports, they all seem to come out OK.
Date
: 2011-01-18 01:22
Sender
:
Campbell Barton
seems the issue is fixed then?
Date
: 2011-01-19 10:02
Sender
:
Lawrence D'Oliveiro
Yes, I now accept that the bug lies elsewhere
[#25712]
. Though I would still like to know what is happening with #25641.
Attached Files:
Name
Date
Download
blender-addons.patch
2011-01-15 01:16
Download
makehuman-example.obj
2011-01-16 22:20
Download
makehuman-example.obj.mtl
2011-01-16 22:20
Download
Changes:
Field
Old Value
Date
By
File Added
14574: makehuman-example.obj
2011-01-16 22:20
ldo
File Added
14575: makehuman-example.obj.mtl
2011-01-16 22:20
ldo
status_id
Open
2011-01-15 19:56
campbellbarton
close_date
None
2011-01-15 19:56
campbellbarton
Status
Investigate
2011-01-15 19:56
campbellbarton
assigned_to
none
2011-01-15 16:19
ton
Status
New
2011-01-15 16:19
ton
File Added
14548: blender-addons.patch
2011-01-15 01:16
ldo