FEM: Constraints should be enabled only when there is an active analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
parent
eda566e572
commit
da7d499595
|
@ -240,7 +240,7 @@ void CmdFemConstraintBearing::activated(int iMsg)
|
|||
|
||||
bool CmdFemConstraintBearing::isActive(void)
|
||||
{
|
||||
return hasActiveDocument();
|
||||
return FemGui::ActiveAnalysisObserver::instance()->hasActiveObject();
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
|
@ -278,7 +278,7 @@ void CmdFemConstraintFixed::activated(int iMsg)
|
|||
|
||||
bool CmdFemConstraintFixed::isActive(void)
|
||||
{
|
||||
return hasActiveDocument();
|
||||
return FemGui::ActiveAnalysisObserver::instance()->hasActiveObject();
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
|
@ -317,7 +317,7 @@ void CmdFemConstraintForce::activated(int iMsg)
|
|||
|
||||
bool CmdFemConstraintForce::isActive(void)
|
||||
{
|
||||
return hasActiveDocument();
|
||||
return FemGui::ActiveAnalysisObserver::instance()->hasActiveObject();
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
|
@ -357,7 +357,7 @@ void CmdFemConstraintPressure::activated(int iMsg)
|
|||
|
||||
bool CmdFemConstraintPressure::isActive(void)
|
||||
{
|
||||
return hasActiveDocument();
|
||||
return FemGui::ActiveAnalysisObserver::instance()->hasActiveObject();
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
|
@ -395,7 +395,7 @@ void CmdFemConstraintGear::activated(int iMsg)
|
|||
|
||||
bool CmdFemConstraintGear::isActive(void)
|
||||
{
|
||||
return hasActiveDocument();
|
||||
return FemGui::ActiveAnalysisObserver::instance()->hasActiveObject();
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
|
@ -438,7 +438,7 @@ void CmdFemConstraintPulley::activated(int iMsg)
|
|||
|
||||
bool CmdFemConstraintPulley::isActive(void)
|
||||
{
|
||||
return hasActiveDocument();
|
||||
return FemGui::ActiveAnalysisObserver::instance()->hasActiveObject();
|
||||
}
|
||||
|
||||
// #####################################################################################################
|
||||
|
|
Loading…
Reference in New Issue
Block a user