[Bf-extensions-cvs] [6992385f] master: glTF exporter: better performance for texture export

Julien Duroure noreply at git.blender.org
Sun Jan 6 17:48:13 CET 2019


Commit: 6992385fafd07888521d2ea37e59f57bdd10b2dd
Author: Julien Duroure
Date:   Sun Jan 6 17:47:42 2019 +0100
Branches: master
https://developer.blender.org/rBA6992385fafd07888521d2ea37e59f57bdd10b2dd

glTF exporter: better performance for texture export

===================================================================

M	io_scene_gltf2/__init__.py
M	io_scene_gltf2/io/exp/gltf2_io_image_data.py

===================================================================

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 0318919a..c01a3e81 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -36,7 +36,7 @@ from bpy.props import (CollectionProperty,
 
 bl_info = {
     'name': 'glTF 2.0 format',
-    'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann Moritz Becher, Benjamin Schmithüsen',
+    'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen',
     "version": (0, 0, 1),
     'blender': (2, 80, 0),
     'location': 'File > Import-Export',
diff --git a/io_scene_gltf2/io/exp/gltf2_io_image_data.py b/io_scene_gltf2/io/exp/gltf2_io_image_data.py
index fb6ecb2a..090a5264 100755
--- a/io_scene_gltf2/io/exp/gltf2_io_image_data.py
+++ b/io_scene_gltf2/io/exp/gltf2_io_image_data.py
@@ -132,6 +132,6 @@ class ImageData:
         return b"".join([
             b'\x89PNG\r\n\x1a\n',
             png_pack(b'IHDR', struct.pack("!2I5B", self.width, self.height, 8, 6, 0, 0, 0)),
-            png_pack(b'IDAT', zlib.compress(raw_data, 9)),
+            png_pack(b'IDAT', zlib.compress(raw_data)),
             png_pack(b'IEND', b'')])



More information about the Bf-extensions-cvs mailing list