Small updates on pinkified theme for some object types, background gradient and other...
[blender-addons-contrib.git] / io_import_LRO_Lola_MGS_Mola_img.py
index d11ccc5aa0ac8689970198dae3e2e69d9095ac7a..98c5d1bbbe7d8e2e067f117a18e145f35e8511f0 100644 (file)
@@ -20,12 +20,11 @@ bl_info = {
     "name": "LRO Lola & MGS Mola img Importer",
     "author": "Valter Battioli (ValterVB)",
     "version": (1, 1, 8),
-    "blender": (2, 5, 8),
-    "api": 37806,
+    "blender": (2, 58, 0),
     "location": "3D window > Tool Shelf",
     "description": "Import DTM from LRO Lola and MGS Mola",
     "warning": "May consume a lot of memory",
-    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
+    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"\
         "Scripts/Import-Export/NASA_IMG_Importer",
     "tracker_url": "http://projects.blender.org/tracker/index.php?"\
         "func=detail&aid=25462",
@@ -538,7 +537,7 @@ class Img_Importer(bpy.types.Panel):
                 split = col.split(align=True)
                 split.label("Message: " + Message)
 
-            if bpy.context.scene.fpath.upper().endswith("IMG") or bpy.context.scene.fpath.upper().endswith("LBL"):  # Check if is selected the correct file
+            if bpy.context.scene.fpath.upper().endswith(("IMG", "LBL")):  # Check if is selected the correct file
                 VertNumbers = (((RealLat(bpy.context.scene.FromLat) - RealLat(bpy.context.scene.ToLat)) * MAP_RESOLUTION) + 1) * ((RealLong(bpy.context.scene.ToLong) - RealLong(bpy.context.scene.FromLong)) * MAP_RESOLUTION + 1)
             else:
                 VertNumbers = 0