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>2011-05-28 13:35:49 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-28 13:35:49 +0400
commit5d47c3aa6c91c5c9eed71349411ab7a367fe6d35 (patch)
treed62bd84e2fb4bfa8df0c645513c99792f06b5671
parent76f6ab34da8e2d2476b0aa0d913f1fa968bbea69 (diff)
update for changes in blenders api
-rw-r--r--io_anim_bvh/export_bvh.py9
-rw-r--r--io_import_images_as_planes.py3
-rw-r--r--io_mesh_ply/import_ply.py3
-rw-r--r--io_scene_3ds/import_3ds.py4
-rw-r--r--io_scene_m3/import_m3.py2
-rw-r--r--io_scene_obj/import_obj.py4
-rw-r--r--io_scene_x3d/import_x3d.py2
7 files changed, 18 insertions, 9 deletions
diff --git a/io_anim_bvh/export_bvh.py b/io_anim_bvh/export_bvh.py
index 6d36e587..851eb1cc 100644
--- a/io_anim_bvh/export_bvh.py
+++ b/io_anim_bvh/export_bvh.py
@@ -23,7 +23,14 @@
import bpy
-def write_armature(context, filepath, frame_start, frame_end, global_scale=1.0, rotate_mode="NATIVE"):
+
+def write_armature(context,
+ filepath,
+ frame_start,
+ frame_end,
+ global_scale=1.0,
+ rotate_mode='NATIVE',
+ ):
def ensure_rot_order(rot_order_str):
if set(rot_order_str) != {'X', 'Y', 'Z'}:
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index 38c8efdc..4ede9e93 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -35,7 +35,8 @@ bl_info = {
import bpy, os, mathutils
from bpy.props import *
from add_utils import *
-from bpy_extras.io_utils import ImportHelper, load_image
+from bpy_extras.io_utils import ImportHelper
+from bpy_extras.image_utils import load_image
## GLOBAL VARS ##
EXT_LIST = {
diff --git a/io_mesh_ply/import_ply.py b/io_mesh_ply/import_ply.py
index bd525065..0f1789d9 100644
--- a/io_mesh_ply/import_ply.py
+++ b/io_mesh_ply/import_ply.py
@@ -207,7 +207,8 @@ import bpy
def load_ply(filepath):
import time
- from bpy_extras.io_utils import load_image, unpack_list, unpack_face_list
+ from bpy_extras.io_utils import unpack_list, unpack_face_list
+ from bpy_extras.image_utils import load_image
t = time.time()
obj_spec, obj = read(filepath)
diff --git a/io_scene_3ds/import_3ds.py b/io_scene_3ds/import_3ds.py
index 967ad2e9..803b8e53 100644
--- a/io_scene_3ds/import_3ds.py
+++ b/io_scene_3ds/import_3ds.py
@@ -25,8 +25,6 @@ import os
import time
import struct
-from bpy_extras.io_utils import load_image
-
import bpy
import mathutils
@@ -240,6 +238,8 @@ def add_texture_to_material(image, texture, material, mapto):
def process_next_chunk(file, previous_chunk, importedObjects, IMAGE_SEARCH):
+ from bpy_extras.image_utils import load_image
+
#print previous_chunk.bytes_read, 'BYTES READ'
contextObName = None
contextLamp = [None, None] # object, Data
diff --git a/io_scene_m3/import_m3.py b/io_scene_m3/import_m3.py
index a3e42e70..402128da 100644
--- a/io_scene_m3/import_m3.py
+++ b/io_scene_m3/import_m3.py
@@ -56,7 +56,7 @@ import mathutils
import struct
import os.path
from bpy.props import *
-from bpy_extras.io_utils import load_image
+from bpy_extras.image_utils import load_image
##################
## Struct setup ##
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py
index edc17fda..697c6508 100644
--- a/io_scene_obj/import_obj.py
+++ b/io_scene_obj/import_obj.py
@@ -35,8 +35,8 @@ import os
import time
import bpy
import mathutils
-from mathutils.geometry import tesselate_polygon
-from bpy_extras.io_utils import load_image, unpack_list, unpack_face_list
+from bpy_extras.io_utils import unpack_list, unpack_face_list
+from bpy_extras.image_utils import load_image
def line_value(line_split):
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 9fb40288..d3ffbb8b 100644
--- a/io_scene_x3d/import_x3d.py
+++ b/io_scene_x3d/import_x3d.py
@@ -948,7 +948,7 @@ class vrmlNode(object):
urls.append(os.path.join(os.path.dirname(self.getFilename()), url))
urls.append(bpy.path.resolve_ncase(urls[-1]))
- urls.append(os.path.join(os.path.dirname(self.getFilename()), os.path.basename(url)))
+ urls.append(os.path.join(os.path.dirname(self.getFilename()), os.path.basename(url)))
urls.append(bpy.path.resolve_ncase(urls[-1]))
try: