|
From: <Ult...@us...> - 2009-03-14 10:13:22
|
Revision: 1094
http://opengate.svn.sourceforge.net/opengate/?rev=1094&view=rev
Author: Ultrasick
Date: 2009-03-14 10:13:07 +0000 (Sat, 14 Mar 2009)
Log Message:
-----------
now only drawing the added textures
Modified Paths:
--------------
branches/ogEditor/data/modules/texturizer/scripts/screens/project/canvas/frames/edit_the_face.py
branches/ogEditor/data/modules/texturizer/scripts/screens/project/canvas/frames/textures.py
Modified: branches/ogEditor/data/modules/texturizer/scripts/screens/project/canvas/frames/edit_the_face.py
===================================================================
--- branches/ogEditor/data/modules/texturizer/scripts/screens/project/canvas/frames/edit_the_face.py 2009-03-14 10:09:04 UTC (rev 1093)
+++ branches/ogEditor/data/modules/texturizer/scripts/screens/project/canvas/frames/edit_the_face.py 2009-03-14 10:13:07 UTC (rev 1094)
@@ -193,8 +193,9 @@
# create the triangles
self.create_triangles()
- # insert a dummy texture
- self.insert_texture('global - glass')
+ # insert the textures
+ for texture in self.face['textures']:
+ self.insert_texture(texture)
def insert_texture(self, texture):
texture = texture.split(' - ')
Modified: branches/ogEditor/data/modules/texturizer/scripts/screens/project/canvas/frames/textures.py
===================================================================
--- branches/ogEditor/data/modules/texturizer/scripts/screens/project/canvas/frames/textures.py 2009-03-14 10:09:04 UTC (rev 1093)
+++ branches/ogEditor/data/modules/texturizer/scripts/screens/project/canvas/frames/textures.py 2009-03-14 10:13:07 UTC (rev 1094)
@@ -124,6 +124,9 @@
# add the texture to the array
self.treestore.textures.append(texture)
+ # update the big preview image
+ screen.preview.redraw()
+
screen.textures_used = textures_used(table)
class textures_available:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|