git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29229 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
532a47a9f0
commit
4712bc807c
@ -1622,8 +1622,8 @@ BPoseView::CreatePoses(Model **models, PoseInfo *poseInfoArray, int32 count,
|
|||||||
float listViewScrollBy = 0;
|
float listViewScrollBy = 0;
|
||||||
for (int32 modelIndex = 0; modelIndex < count; modelIndex++) {
|
for (int32 modelIndex = 0; modelIndex < count; modelIndex++) {
|
||||||
Model *model = models[modelIndex];
|
Model *model = models[modelIndex];
|
||||||
ASSERT(!FindPose(model));
|
|
||||||
if (FindZombie(model->NodeRef())) {
|
if (FindPose(model) || FindZombie(model->NodeRef())) {
|
||||||
// we already have this pose, don't add it
|
// we already have this pose, don't add it
|
||||||
watch_node(model->NodeRef(), B_STOP_WATCHING, this);
|
watch_node(model->NodeRef(), B_STOP_WATCHING, this);
|
||||||
delete model;
|
delete model;
|
||||||
|
Loading…
Reference in New Issue
Block a user