Skip to content

Commit

Permalink
Update DrawSketchHandlerCarbonCopy
Browse files Browse the repository at this point in the history
  • Loading branch information
Syres916 authored Nov 30, 2024
1 parent 9f0e9a2 commit f890868
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Sketcher/Gui/DrawSketchHandlerCarbonCopy.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ class DrawSketchHandlerCarbonCopy: public DrawSketchHandler
throw Base::ValueError("Sketcher: Carbon Copy: Invalid object in selection");
}

if (obj->is<Sketcher::SketchObject>()) {
std::string sketchArchType("Sketcher::SketchObjectPython");

if (obj->is<Sketcher::SketchObject>()
|| sketchArchType == obj->getTypeId().getName()) {

try {
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Create a carbon copy"));
Expand Down

0 comments on commit f890868

Please sign in to comment.