diff --git a/src/Mod/Draft/CMakeLists.txt b/src/Mod/Draft/CMakeLists.txt index 601eb58f9a..2473d99fdd 100644 --- a/src/Mod/Draft/CMakeLists.txt +++ b/src/Mod/Draft/CMakeLists.txt @@ -113,6 +113,7 @@ SET(Draft_objects SET(Draft_view_providers draftviewproviders/__init__.py draftviewproviders/view_base.py + draftviewproviders/view_bspline.py draftviewproviders/view_circulararray.py draftviewproviders/view_clone.py draftviewproviders/view_facebinder.py diff --git a/src/Mod/Draft/draftmake/make_bspline.py b/src/Mod/Draft/draftmake/make_bspline.py index 9dfa41195a..5f030ab6ef 100644 --- a/src/Mod/Draft/draftmake/make_bspline.py +++ b/src/Mod/Draft/draftmake/make_bspline.py @@ -35,9 +35,9 @@ from draftutils.utils import type_check from draftutils.translate import translate from draftobjects.bspline import BSpline + if App.GuiUp: - # from draftviewproviders.view_bspline import ViewProviderBSpline - from draftviewproviders.view_wire import ViewProviderWire + from draftviewproviders.view_bspline import ViewProviderBSpline def make_bspline(pointslist, closed=False, placement=None, face=None, support=None): diff --git a/src/Mod/Draft/draftviewproviders/view_bspline.py b/src/Mod/Draft/draftviewproviders/view_bspline.py new file mode 100644 index 0000000000..4fb0d35724 --- /dev/null +++ b/src/Mod/Draft/draftviewproviders/view_bspline.py @@ -0,0 +1,38 @@ +# *************************************************************************** +# * Copyright (c) 2020 Eliud Cabrera Castillo * +# * * +# * This program is free software; you can redistribute it and/or modify * +# * it under the terms of the GNU Lesser General Public License (LGPL) * +# * as published by the Free Software Foundation; either version 2 of * +# * the License, or (at your option) any later version. * +# * for detail see the LICENCE text file. * +# * * +# * This program is distributed in the hope that it will be useful, * +# * but WITHOUT ANY WARRANTY; without even the implied warranty of * +# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +# * GNU Library General Public License for more details. * +# * * +# * You should have received a copy of the GNU Library General Public * +# * License along with this program; if not, write to the Free Software * +# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * +# * USA * +# * * +# *************************************************************************** +"""Provides the view provider code for BSpline objects. + +At the moment this view provider subclasses the Wire view provider, +and behaves the same as it. In the future this could change +if another behavior is desired. +""" +## @package view_bspline +# \ingroup DRAFT +# \brief Provides the view provider code for BSpline objects. + +from draftviewproviders.view_wire import ViewProviderWire + + +class ViewProviderBSpline(ViewProviderWire): + """The view provider for the BSpline object.""" + + def __init__(self, vobj): + super(ViewProviderBSpline, self).__init__(vobj)