Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 604398e

Browse files
committed
fix use of is_Texture in plot3d base
1 parent d39f55e commit 604398e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/plot/plot3d/base.pyx

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ from sage.modules.free_module_element import vector
5555

5656
from sage.rings.real_double import RDF
5757
from sage.misc.temporary_file import tmp_filename
58-
from .texture import Texture, is_Texture
58+
from .texture import Texture
5959
from .transform cimport Transformation, point_c, face_c
6060
include "point_c.pxi"
6161

@@ -2673,7 +2673,7 @@ cdef class PrimitiveObject(Graphics3d):
26732673
def __init__(self, **kwds):
26742674
if 'texture' in kwds:
26752675
self.texture = kwds['texture']
2676-
if not is_Texture(self.texture):
2676+
if not isinstance(self.texture, Texture):
26772677
self.texture = Texture(self.texture)
26782678
else:
26792679
self.texture = Texture(kwds)
@@ -2687,7 +2687,7 @@ cdef class PrimitiveObject(Graphics3d):
26872687
sage: G.set_texture(color='yellow'); G
26882688
Graphics3d Object
26892689
"""
2690-
if not is_Texture(texture):
2690+
if not isinstance(texture, Texture):
26912691
texture = Texture(texture, **kwds)
26922692
self.texture = texture
26932693

0 commit comments

Comments
 (0)