Skip to content

Commit d2fed76

Browse files
committed
Removing the validation warning in CreateNanoGrid::processGrid() to prevent the console from being spammed when a vector grid of type fog volume is processed.
Signed-off-by: alexandresv <alexandres@sidefx.com>
1 parent 1efbe09 commit d2fed76

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)