Section directions from rotated DPGI's
This commit is contained in:
@@ -121,20 +121,19 @@ void TaskSectionView::resetValues()
|
||||
bool TaskSectionView::calcValues()
|
||||
{
|
||||
bool result = true;
|
||||
Base::Vector3d view = m_base->Direction.getValue();
|
||||
|
||||
if (ui->pb_Up->isChecked()) {
|
||||
sectionDir = "Up";
|
||||
sectionProjDir = DrawViewSection::getSectionVector(view,sectionDir);
|
||||
sectionProjDir = m_section->getSectionVector(sectionDir);
|
||||
} else if (ui->pb_Down->isChecked()) {
|
||||
sectionDir = "Down";
|
||||
sectionProjDir = DrawViewSection::getSectionVector(view,sectionDir);
|
||||
sectionProjDir = m_section->getSectionVector(sectionDir);
|
||||
} else if (ui->pb_Left->isChecked()) {
|
||||
sectionDir = "Left";
|
||||
sectionProjDir = DrawViewSection::getSectionVector(view,sectionDir);
|
||||
sectionProjDir = m_section->getSectionVector(sectionDir);
|
||||
} else if (ui->pb_Right->isChecked()) {
|
||||
sectionDir = "Right";
|
||||
sectionProjDir = DrawViewSection::getSectionVector(view,sectionDir);
|
||||
sectionProjDir = m_section->getSectionVector(sectionDir);
|
||||
} else {
|
||||
Base::Console().Message("Select a direction\n");
|
||||
result = false;
|
||||
|
||||
Reference in New Issue
Block a user