Skip to content

Commit a45bea4

Browse files
committed
fixed small bug on loading file when inlet connected
1 parent 7284a42 commit a45bea4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/objects/data/FileToData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void FileToData::updateObjectContent(map<int,shared_ptr<PatchObject>> &patchObje
8989
*static_cast<vector<float> *>(_outletParams[0]) = dataMatrix.at(actualIndex);
9090
}
9191

92-
if(this->inletsConnected[0]){
92+
if(this->inletsConnected[0] && readData){
9393
if(*(float *)&_inletParams[0] == 1.0){
9494
if(actualIndex < dataMatrix.size()-1){
9595
actualIndex++;

0 commit comments

Comments
 (0)