X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FMeshVS%2FMeshVS_CommonSensitiveEntity.cxx;h=c0165fc44f2e19afa6116efa3a23c51fc1e4b777;hp=2f118c1adb7c9c4be8a0ba731f00c6262b413292;hb=b1492cb30fcac293dcedabecb914a8a9db0fe536;hpb=5c225e8e077074d0f1fc3309ce148d13225ec023 diff --git a/src/MeshVS/MeshVS_CommonSensitiveEntity.cxx b/src/MeshVS/MeshVS_CommonSensitiveEntity.cxx index 2f118c1..c0165fc 100644 --- a/src/MeshVS/MeshVS_CommonSensitiveEntity.cxx +++ b/src/MeshVS/MeshVS_CommonSensitiveEntity.cxx @@ -34,6 +34,7 @@ MeshVS_CommonSensitiveEntity::MeshVS_CommonSensitiveEntity (const Handle(SelectM myDataSource (theParentMesh->GetDataSource()), mySelMethod (theSelMethod) { + myMaxFaceNodes = 0; theParentMesh->GetDrawer()->GetInteger (MeshVS_DA_MaxFaceNodes, myMaxFaceNodes); Standard_ASSERT_RAISE (myMaxFaceNodes > 0, "The maximal amount of nodes in a face must be greater than zero to create sensitive entity");