Prechádzať zdrojové kódy

Exporter version 3.0.2
- added check to stop un-neccessary baking

Jeff Palmer 10 rokov pred
rodič
commit
f97c256b66
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      Exporters/Blender/io_export_babylon.py

+ 2 - 2
Exporters/Blender/io_export_babylon.py

@@ -1,7 +1,7 @@
 bl_info = {
     'name': 'Babylon.js',
     'author': 'David Catuhe, Jeff Palmer',
-    'version': (3, 0, 1),
+    'version': (3, 0, 2),
     'blender': (2, 75, 0),
     'location': 'File > Export > Babylon.js (.babylon)',
     'description': 'Export Babylon.js scenes (.babylon)',
@@ -1642,7 +1642,7 @@ class BakingRecipe:
 
                 textures = [mtex for mtex in material.texture_slots if mtex and mtex.texture]
                 for mtex in textures:
-                    if mtex.texture.type == 'IMAGE':
+                    if mtex.texture.type == 'IMAGE' or mtex.texture.type == 'NONE':
                         continue
 
                     self.needsBaking = True