diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-25 05:22:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-25 05:22:50 +0400 |
commit | a695741a4858b429f17db6e9cce6a171c32d769d (patch) | |
tree | 0b156ec707bda32e7c097a832dbf04353517fa05 /io_import_scene_mhx.py | |
parent | 980d7fe327a1ae874939b9ca04b3697396f49299 (diff) |
updates to blender rna api
Diffstat (limited to 'io_import_scene_mhx.py')
-rw-r--r-- | io_import_scene_mhx.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py index a669327b..b8e54e9b 100644 --- a/io_import_scene_mhx.py +++ b/io_import_scene_mhx.py @@ -779,11 +779,7 @@ def parseTexture(args, tokens): global todo if verbosity > 2: print( "Parsing texture %s" % args ) - name = args[0] - tex = bpy.data.textures.new(name) - typ = args[1] - tex.type = typ - tex = tex.recast_type() + tex = bpy.data.textures.new(name=args[0], type=args[1]) loadedData['Texture'][name] = tex for (key, val, sub) in tokens: |