Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_scene_gltf2/io/exp/gltf2_io_binary_data.py')
-rwxr-xr-xio_scene_gltf2/io/exp/gltf2_io_binary_data.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/io_scene_gltf2/io/exp/gltf2_io_binary_data.py b/io_scene_gltf2/io/exp/gltf2_io_binary_data.py
index 42f6d5d7..c4e0dd20 100755
--- a/io_scene_gltf2/io/exp/gltf2_io_binary_data.py
+++ b/io_scene_gltf2/io/exp/gltf2_io_binary_data.py
@@ -25,6 +25,12 @@ class BinaryData:
raise TypeError("Data is not a bytes array")
self.data = data
+ def __eq__(self, other):
+ return self.data == other.data
+
+ def __hash__(self):
+ return hash(self.data)
+
@classmethod
def from_list(cls, lst: typing.List[typing.Any], gltf_component_type: gltf2_io_constants.ComponentType):
format_char = gltf2_io_constants.ComponentType.to_type_code(gltf_component_type)