PoseList: fix an assertion failure

This commit is contained in:
Philippe Saint-Pierre 2012-08-08 12:31:02 -04:00
parent ea8b1e14f9
commit 7d460e3bb9

View File

@ -127,13 +127,16 @@ PoseList::FindAllPoses(const node_ref *node) const
continue;
}
if (!model->IsSymLink())
continue;
model = model->LinkTo();
if (model && *model->NodeRef() == *node) {
result->AddItem(pose);
continue;
}
if (!model && pose->TargetModel()->IsSymLink()) {
if (!model) {
model = new Model(pose->TargetModel()->EntryRef(), true);
if (*model->NodeRef() == *node)
result->AddItem(pose);