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:
authorJulien Duroure <julien.duroure@gmail.com>2019-11-30 17:56:00 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-11-30 17:56:00 +0300
commita6008be7622c4acd85759fbb184fc803e0d26658 (patch)
tree73f255d33903fde0802b31ee7c63fee33c210df9 /io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
parent6087f4c26540b54ca164494ae46bb1cd1ec25446 (diff)
glTF exporter: remove unused code
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather_image.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
index 9f322f10..9309eb64 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
@@ -143,19 +143,6 @@ def __get_image_data(sockets_or_slots, export_settings) -> gltf2_blender_image.E
# For shared resources, such as images, we just store the portion of data that is needed in the glTF property
# in a helper class. During generation of the glTF in the exporter these will then be combined to actual binary
# resources.
- def split_pixels_by_channels(image: bpy.types.Image, export_settings) -> typing.Optional[typing.List[typing.List[float]]]:
- channelcache = export_settings['gltf_channelcache']
- if image.name in channelcache:
- return channelcache[image.name]
-
- pixels = np.array(image.pixels[:])
- pixels = pixels.reshape((pixels.shape[0] // image.channels, image.channels))
- channels = np.split(pixels, pixels.shape[1], axis=1)
-
- channelcache[image.name] = channels
-
- return channels
-
if __is_socket(sockets_or_slots):
results = [__get_tex_from_socket(socket, export_settings) for socket in sockets_or_slots]
composed_image = None