Fem: Expose Constraint view provider symbol node to Python
This commit is contained in:
committed by
Chris Hennes
parent
c49c52716c
commit
ea840bc3a3
@@ -47,6 +47,7 @@
|
||||
|
||||
#include "TaskFemConstraint.h"
|
||||
#include "ViewProviderFemConstraint.h"
|
||||
#include "ViewProviderFemConstraintPy.h"
|
||||
|
||||
|
||||
using namespace FemGui;
|
||||
@@ -215,6 +216,15 @@ void ViewProviderFemConstraint::unsetEdit(int ModNum)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* ViewProviderFemConstraint::getPyObject()
|
||||
{
|
||||
if (!pyViewObject) {
|
||||
pyViewObject = new ViewProviderFemConstraintPy(this);
|
||||
}
|
||||
pyViewObject->IncRef();
|
||||
return pyViewObject;
|
||||
}
|
||||
/*
|
||||
// Create a local coordinate system with the z-axis given in dir
|
||||
void getLocalCoordinateSystem(const SbVec3f& z, SbVec3f& y, SbVec3f& x)
|
||||
|
||||
Reference in New Issue
Block a user