refactor: update transformation system, improve template readability, and reorganize VTK assembly management
This commit is contained in:
@@ -505,11 +505,11 @@ void Viewport::SelectPuppet(Puppet* prop)
|
||||
|
||||
if (pv->m_HandlerWidget) {
|
||||
if (prop) {
|
||||
vtkProp3D* prop3d = vtkProp3D::SafeDownCast(prop->GetProp());
|
||||
vtkProp3D* prop3d = prop->GetProxyProp();
|
||||
if (prop3d) {
|
||||
pv->m_HandlerWidget->SetProp3D(prop3d);
|
||||
pv->m_HandlerWidget->SetEnabled(1);
|
||||
pv->m_HandlerWidget->PlaceWidget(prop3d->GetBounds());
|
||||
pv->m_HandlerWidget->PlaceWidget(prop3d->GetBounds()); //TODO: FIX !
|
||||
}
|
||||
} else {
|
||||
pv->m_HandlerWidget->SetEnabled(0);
|
||||
|
||||
Reference in New Issue
Block a user