* Remove wrong check that was preventing to properly place the first pose. Fixes #4055

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32512 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexandre Deckner 2009-08-19 12:51:50 +00:00
parent ade571c524
commit 3074019e96
1 changed files with 6 additions and 8 deletions

View File

@ -1639,7 +1639,7 @@ BPoseView::CreatePoses(Model **models, PoseInfo *poseInfoArray, int32 count,
if (resultingPoses)
resultingPoses[modelIndex] = NULL;
continue;
} else
} else
fInsertedNodes.insert(*(model->NodeRef()));
if ((clipboardMode = FSClipboardFindNodeMode(model, false, true)) != 0
@ -3270,12 +3270,10 @@ BPoseView::PlacePose(BPose *pose, BRect &viewBounds)
bool checkValidLocation = IsDesktopWindow();
// find an empty slot to put pose into
if (fVSPoseList->CountItems() > 0) {
while (SlotOccupied(rect, viewBounds)
// check good location on the desktop
|| (checkValidLocation && !IsValidLocation(rect))) {
NextSlot(pose, rect, viewBounds);
}
while (SlotOccupied(rect, viewBounds)
// check good location on the desktop
|| (checkValidLocation && !IsValidLocation(rect))) {
NextSlot(pose, rect, viewBounds);
}
rect.InsetBy(3, 0);
@ -5324,7 +5322,7 @@ BPoseView::AttributeChanged(const BMessage *message)
PRINT(("converting model %s from a zombie\n", zombie->Name()));
ConvertZombieToPose(zombie, index);
}
}
}
} else {
zombie->StatChanged();
}