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:
authorCampbell Barton <ideasman42@gmail.com>2019-10-15 11:42:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-10-15 11:42:17 +0300
commit0c21df4e49166d7aa0b7606db0f9e34ab93a7b68 (patch)
tree36283ffbdde9849b665ec18c67a108cd5461f0f7
parent06766ff5d5932a7acb05a45d6cd045e5374e6b38 (diff)
Add warnings about non-compliant imports
This makes code harder to maintain & should be resolved since this add-on is now on by default.
-rw-r--r--io_scene_gltf2/io/com/gltf2_io_lights_punctual.py2
-rw-r--r--io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/io_scene_gltf2/io/com/gltf2_io_lights_punctual.py b/io_scene_gltf2/io/com/gltf2_io_lights_punctual.py
index 3dc8704c..fe29ebc3 100644
--- a/io_scene_gltf2/io/com/gltf2_io_lights_punctual.py
+++ b/io_scene_gltf2/io/com/gltf2_io_lights_punctual.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+# FIXME, this goes against Blender's best practice.
from io_scene_gltf2.io.com.gltf2_io import *
@@ -73,4 +74,3 @@ class Light:
self.extensions)
result["extras"] = self.extras
return result
-
diff --git a/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py b/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py
index 2d42ce10..0230bdfc 100644
--- a/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py
+++ b/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py
@@ -14,7 +14,10 @@
import bpy
import sys
+
+# FIXME, this goes against Blender's best practice.
from ctypes import *
+
from pathlib import Path
from io_scene_gltf2.io.exp.gltf2_io_binary_data import BinaryData
@@ -240,4 +243,3 @@ def __compress_primitive(primitive, dll, export_settings):
dll.disposeCompressor(compressor)
pass
-