Performance improvements Ph1
This commit is contained in:
@@ -74,14 +74,6 @@ DrawViewClip::~DrawViewClip()
|
||||
|
||||
void DrawViewClip::onChanged(const App::Property* prop)
|
||||
{
|
||||
if (prop == &Height ||
|
||||
prop == &Width ||
|
||||
prop == &Views) {
|
||||
if (!isRestoring()) {
|
||||
DrawViewClip::execute();
|
||||
}
|
||||
}
|
||||
|
||||
DrawView::onChanged(prop);
|
||||
}
|
||||
|
||||
@@ -126,11 +118,16 @@ App::DocumentObjectExecReturn *DrawViewClip::execute(void)
|
||||
|
||||
short DrawViewClip::mustExecute() const
|
||||
{
|
||||
if (Views.isTouched()) {
|
||||
return 1;
|
||||
} else {
|
||||
return TechDraw::DrawView::mustExecute();
|
||||
short result = 0;
|
||||
if (!isRestoring()) {
|
||||
result = ( Height.isTouched() ||
|
||||
Width.isTouched() ||
|
||||
Views.isTouched());
|
||||
}
|
||||
if (result) {
|
||||
return result;
|
||||
}
|
||||
return TechDraw::DrawView::mustExecute();
|
||||
}
|
||||
|
||||
std::vector<std::string> DrawViewClip::getChildViewNames()
|
||||
|
||||
Reference in New Issue
Block a user