Skip to content

Commit

Permalink
Path: Indicate fromShape as deprecated - issue #2786
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jan 12, 2018
1 parent a8ab24a commit fb8875d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Path/App/AppPathPy.cpp
Expand Up @@ -116,7 +116,7 @@ class Module : public Py::ExtensionModule<Module>
"show(path,[string]): Add the path to the active document or create one if no document exists"
);
add_varargs_method("fromShape",&Module::fromShape,
"fromShape(Shape): Returns a Path object from a Part Shape"
"fromShape(Shape): Returns a Path object from a Part Shape (deprecated - use fromShapes() instead)"

This comment has been minimized.

Copy link
@luzpaz

luzpaz Jan 12, 2018

Contributor

@yorikvanhavre is there a way to output something to the console indicating this is deprecated?

This comment has been minimized.

Copy link
@yorikvanhavre

yorikvanhavre Jan 12, 2018

Author Member

No need, this function is AFAIK not used in any GUI tool anymore... Only the script writer needs to be warned...

);
add_keyword_method("fromShapes",&Module::fromShapes,
"fromShapes(shapes, start=Vector(), return_end=False" PARAM_PY_ARGS_DOC(ARG,AREA_PARAMS_PATH) ")\n"
Expand Down

0 comments on commit fb8875d

Please sign in to comment.