Revision: 27858
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27858
Author:   campbellbarton
Date:     2010-03-30 11:54:17 +0200 (Tue, 30 Mar 2010)

Log Message:
-----------
[#21816] bpy.data.add_image has stopped working on Windows
moved to bpy.data.images.load(), missed this call.

Modified Paths:
--------------
    branches/render25/release/scripts/io/import_scene_obj.py

Modified: branches/render25/release/scripts/io/import_scene_obj.py
===================================================================
--- branches/render25/release/scripts/io/import_scene_obj.py    2010-03-30 
09:42:51 UTC (rev 27857)
+++ branches/render25/release/scripts/io/import_scene_obj.py    2010-03-30 
09:54:17 UTC (rev 27858)
@@ -322,7 +322,7 @@
 
     for path in variants:
         if os.path.exists(path):
-            return bpy.data.add_image(path)
+            return bpy.data.images.load(path)
         else:
             print(path, "doesn't exist")
 


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to