[TD]Transition to on demand page updates ph1
This commit is contained in:
@@ -133,24 +133,20 @@ bool DrawProjGroupItem::showLock(void) const
|
||||
|
||||
App::DocumentObjectExecReturn *DrawProjGroupItem::execute(void)
|
||||
{
|
||||
// Base::Console().Message("DPGI::execute(%s)\n",Label.getValue());
|
||||
if (DrawUtil::checkParallel(Direction.getValue(),
|
||||
RotationVector.getValue())) {
|
||||
return new App::DocumentObjectExecReturn("DPGI: Direction and RotationVector are parallel");
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn * ret = DrawViewPart::execute();
|
||||
if (ret != nullptr) {
|
||||
return ret;
|
||||
} else {
|
||||
autoPosition();
|
||||
delete ret;
|
||||
}
|
||||
return App::DocumentObject::StdReturn;
|
||||
App::DocumentObjectExecReturn* ret = DrawViewPart::execute();
|
||||
autoPosition();
|
||||
return ret;
|
||||
}
|
||||
|
||||
void DrawProjGroupItem::autoPosition()
|
||||
{
|
||||
// Base::Console().Message("DPGI::autoPosition(%s)\n",getNameInDocument());
|
||||
// Base::Console().Message("DPGI::autoPosition(%s)\n",Label.getValue());
|
||||
auto pgroup = getPGroup();
|
||||
Base::Vector3d newPos;
|
||||
if (pgroup != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user