From 9404c34157ededc830a4287d35e6082e55edf6bf Mon Sep 17 00:00:00 2001 From: Bryce Sampson Date: Wed, 25 May 2016 13:58:38 -0700 Subject: [PATCH] Added missing graphics method types to creategraphicsmethod --- Packages/vcs/vcs/utils.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Packages/vcs/vcs/utils.py b/Packages/vcs/vcs/utils.py index 6b94f43529..e69466eab5 100644 --- a/Packages/vcs/vcs/utils.py +++ b/Packages/vcs/vcs/utils.py @@ -1629,7 +1629,7 @@ def getgraphicsmethod(type, name): return copy_mthd -def creategraphicsmethod(gtype, name): +def creategraphicsmethod(gtype, gname='default', name=None): if gtype in ['isoline', 'Gi']: func = vcs.createisoline elif gtype in ['isofill', 'Gfi']: @@ -1652,11 +1652,17 @@ def creategraphicsmethod(gtype, name): func = vcs.createvector elif gtype in ['taylordiagram', 'Gtd']: func = vcs.createtaylordiagram - elif isinstance(type, vcsaddons.core.VCSaddon): - func = type.creategm + elif gtype == '3d_scalar': + func = vcs.create3d_scalar + elif gtype == '3d_dual_scalar': + func = vcs.create3d_dual_scalar + elif gtype == '3d_vector': + func = vcs.create3d_vector + elif isinstance(gtype, vcsaddons.core.VCSaddon): + func = gtype.creategm else: return None - copy_mthd = func(source=name) + copy_mthd = func(name=name, source=gname) return copy_mthd