Optimize caching of UnoptimizedTexture.
This commit is contained in:
+3
-3
@@ -1994,8 +1994,9 @@ class UnoptimizedTexture(ImageBase):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, im, **properties):
|
def __init__(self, im, **properties):
|
||||||
super(UnoptimizedTexture, self).__init__(im, optimize_bounds=False, **properties)
|
im = image(im)
|
||||||
self.image = image(im)
|
super(UnoptimizedTexture, self).__init__(im.identity, optimize_bounds=False, **properties)
|
||||||
|
self.image = im
|
||||||
|
|
||||||
def get_hash(self):
|
def get_hash(self):
|
||||||
return self.image.get_hash()
|
return self.image.get_hash()
|
||||||
@@ -2007,7 +2008,6 @@ class UnoptimizedTexture(ImageBase):
|
|||||||
return self.image.predict_files()
|
return self.image.predict_files()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def image(arg, loose=False, **properties):
|
def image(arg, loose=False, **properties):
|
||||||
"""
|
"""
|
||||||
:doc: im_image
|
:doc: im_image
|
||||||
|
|||||||
Reference in New Issue
Block a user