Skip to content

Commit 1b0fa91

Browse files
authored
Merge pull request #1762 from sideeffects/sendupstream_processgrid_warning
Removing the validation warning in CreateNanoGrid::processGrid()
2 parents 1efbe09 + d2fed76 commit 1b0fa91

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

nanovdb/nanovdb/util/CreateNanoGrid.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,16 +1721,6 @@ void CreateNanoGrid<SrcGridT>::processGrid()
17211721
dstData->mBlindMetadataCount = static_cast<uint32_t>(mBlindMetaData.size());
17221722
dstData->mData1 = this->valueCount();
17231723

1724-
if (!isValid(dstData->mGridType, dstData->mGridClass)) {
1725-
#if 1
1726-
fprintf(stderr,"Warning: Strange combination of GridType(\"%s\") and GridClass(\"%s\"). Consider changing GridClass to \"Unknown\"\n",
1727-
toStr(dstData->mGridType), toStr(dstData->mGridClass));
1728-
#else
1729-
throw std::runtime_error("Invalid combination of GridType("+std::to_string(int(dstData->mGridType))+
1730-
") and GridClass("+std::to_string(int(dstData->mGridClass))+"). See NanoVDB.h for details!");
1731-
#endif
1732-
}
1733-
17341724
std::memset(dstData->mGridName, '\0', GridData::MaxNameSize);//overwrite mGridName
17351725
strncpy(dstData->mGridName, mSrcNodeAcc.getName().c_str(), GridData::MaxNameSize-1);
17361726
if (mSrcNodeAcc.hasLongGridName()) dstData->setLongGridNameOn();// grid name is long so store it as blind data

0 commit comments

Comments
 (0)