[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [924] trunk/py/scripts/addons: update for changes in rna api
Campbell Barton
ideasman42 at gmail.com
Thu Aug 19 14:49:53 CEST 2010
Revision: 924
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=924
Author: campbellbarton
Date: 2010-08-19 14:49:53 +0200 (Thu, 19 Aug 2010)
Log Message:
-----------
update for changes in rna api
Modified Paths:
--------------
trunk/py/scripts/addons/io_import_images_as_planes.py
trunk/py/scripts/addons/space_view3d_materials_utils.py
Modified: trunk/py/scripts/addons/io_import_images_as_planes.py
===================================================================
--- trunk/py/scripts/addons/io_import_images_as_planes.py 2010-08-18 13:52:14 UTC (rev 923)
+++ trunk/py/scripts/addons/io_import_images_as_planes.py 2010-08-19 12:49:53 UTC (rev 924)
@@ -330,9 +330,9 @@
# Put Image into UVTextureLayer
plane.data.uv_textures[0].data[0].image = img
- plane.data.uv_textures[0].data[0].tex = True
- plane.data.uv_textures[0].data[0].transp = 'ALPHA'
- plane.data.uv_textures[0].data[0].twoside = True
+ plane.data.uv_textures[0].data[0].use_texture = True
+ plane.data.uv_textures[0].data[0].blend_mode = 'ALPHA'
+ plane.data.uv_textures[0].data[0].use_twoside = True
plane.select = True
scene.objects.active = plane
@@ -359,9 +359,9 @@
# Put image into UVTextureLayer
plane.data.uv_textures[0].data[0].image = img
- plane.data.uv_textures[0].data[0].tex = True
- plane.data.uv_textures[0].data[0].transp = 'ALPHA'
- plane.data.uv_textures[0].data[0].twoside = True
+ plane.data.uv_textures[0].data[0].use_texture = True
+ plane.data.uv_textures[0].data[0].blend_mode = 'ALPHA'
+ plane.data.uv_textures[0].data[0].use_twoside = True
plane.select = True
scene.objects.active = plane
Modified: trunk/py/scripts/addons/space_view3d_materials_utils.py
===================================================================
--- trunk/py/scripts/addons/space_view3d_materials_utils.py 2010-08-18 13:52:14 UTC (rev 923)
+++ trunk/py/scripts/addons/space_view3d_materials_utils.py 2010-08-19 12:49:53 UTC (rev 924)
@@ -213,11 +213,11 @@
#check that material had an image!
if images[f.material_index] != None:
uvtex[f.index].image = images[f.material_index]
- uvtex[f.index].tex =True
+ uvtex[f.index].use_texture = True
else:
- uvtex[f.index].tex =False
-
- me.update
+ uvtex[f.index].use_texture = False
+
+ me.update()
if editmode:
More information about the Bf-extensions-cvs
mailing list