PoseView::AddPosesTask - no need to open the node at this point
This commit is contained in:
@@ -1359,7 +1359,7 @@ BPoseView::AddPosesTask(void* castToParams)
|
|||||||
// have to node monitor ahead of time because Model will
|
// have to node monitor ahead of time because Model will
|
||||||
// cache up the file type and preferred app
|
// cache up the file type and preferred app
|
||||||
// OK to call when poseView is not locked
|
// OK to call when poseView is not locked
|
||||||
model = new Model(&dirNode, &itemNode, eptr->d_name, true);
|
model = new Model(&dirNode, &itemNode, eptr->d_name, false);
|
||||||
result = model->InitCheck();
|
result = model->InitCheck();
|
||||||
modelChunkIndex++;
|
modelChunkIndex++;
|
||||||
posesResult->fModels[modelChunkIndex] = model;
|
posesResult->fModels[modelChunkIndex] = model;
|
||||||
@@ -1403,15 +1403,12 @@ BPoseView::AddPosesTask(void* castToParams)
|
|||||||
|
|
||||||
if (!PoseVisible(model,
|
if (!PoseVisible(model,
|
||||||
&(posesResult->fPoseInfos[modelChunkIndex]))) {
|
&(posesResult->fPoseInfos[modelChunkIndex]))) {
|
||||||
model->CloseNode();
|
|
||||||
modelChunkIndex--;
|
modelChunkIndex--;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (model->IsSymLink())
|
if (model->IsSymLink())
|
||||||
view->CreateSymlinkPoseTarget(model);
|
view->CreateSymlinkPoseTarget(model);
|
||||||
|
|
||||||
model->CloseNode();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bigtime_t now = system_time();
|
bigtime_t now = system_time();
|
||||||
|
|||||||
Reference in New Issue
Block a user