mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-30 19:30:35 +05:00
Fix fo IPAL20415 (Error on mouse picking with Shift in 3D viewer if any dialog box is opened)
This commit is contained in:
parent
27ea448bbb
commit
319c1131ad
@ -721,7 +721,7 @@ SMESH_DeviceActor
|
|||||||
{
|
{
|
||||||
vtkDataSet* aDataSet = myMergeFilter->GetOutput();
|
vtkDataSet* aDataSet = myMergeFilter->GetOutput();
|
||||||
vtkIdType anID = myVisualObj->GetNodeVTKId(theObjID);
|
vtkIdType anID = myVisualObj->GetNodeVTKId(theObjID);
|
||||||
vtkFloatingPointType* aCoord = aDataSet->GetPoint(anID);
|
vtkFloatingPointType* aCoord = (anID >=0) ? aDataSet->GetPoint(anID) : NULL;
|
||||||
if(MYDEBUG) MESSAGE("GetNodeCoord - theObjID = "<<theObjID<<"; anID = "<<anID);
|
if(MYDEBUG) MESSAGE("GetNodeCoord - theObjID = "<<theObjID<<"; anID = "<<anID);
|
||||||
return aCoord;
|
return aCoord;
|
||||||
}
|
}
|
||||||
@ -757,7 +757,7 @@ SMESH_DeviceActor
|
|||||||
{
|
{
|
||||||
vtkDataSet* aDataSet = myVisualObj->GetUnstructuredGrid();
|
vtkDataSet* aDataSet = myVisualObj->GetUnstructuredGrid();
|
||||||
vtkIdType aGridID = myVisualObj->GetElemVTKId(theObjID);
|
vtkIdType aGridID = myVisualObj->GetElemVTKId(theObjID);
|
||||||
vtkCell* aCell = aDataSet->GetCell(aGridID);
|
vtkCell* aCell = (aGridID >= 0 ) ? aDataSet->GetCell(aGridID) : NULL;
|
||||||
if(MYDEBUG)
|
if(MYDEBUG)
|
||||||
MESSAGE("GetElemCell - theObjID = "<<theObjID<<"; aGridID = "<<aGridID);
|
MESSAGE("GetElemCell - theObjID = "<<theObjID<<"; aGridID = "<<aGridID);
|
||||||
return aCell;
|
return aCell;
|
||||||
|
Loading…
Reference in New Issue
Block a user