Part: do not copy visual of sketch
This commit is contained in:
@@ -49,6 +49,8 @@
|
||||
#include <Gui/ViewProvider.h>
|
||||
#include <Gui/WaitCursor.h>
|
||||
|
||||
#include <Mod/Part/App/Part2DObject.h>
|
||||
|
||||
#include "ui_DlgExtrusion.h"
|
||||
#include "DlgExtrusion.h"
|
||||
|
||||
@@ -492,9 +494,11 @@ void DlgExtrusion::apply()
|
||||
|
||||
this->writeParametersToFeature(*newObj, sourceObj);
|
||||
|
||||
Gui::Command::copyVisual(newObj, "ShapeAppearance", sourceObj);
|
||||
Gui::Command::copyVisual(newObj, "LineColor", sourceObj);
|
||||
Gui::Command::copyVisual(newObj, "PointColor", sourceObj);
|
||||
if (!sourceObj->isDerivedFrom<Part::Part2DObject>()) {
|
||||
Gui::Command::copyVisual(newObj, "ShapeAppearance", sourceObj);
|
||||
Gui::Command::copyVisual(newObj, "LineColor", sourceObj);
|
||||
Gui::Command::copyVisual(newObj, "PointColor", sourceObj);
|
||||
}
|
||||
|
||||
FCMD_OBJ_HIDE(sourceObj);
|
||||
}
|
||||
@@ -792,3 +796,4 @@ void TaskExtrusion::clicked(int id)
|
||||
}
|
||||
|
||||
#include "moc_DlgExtrusion.cpp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user