summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: daf094b)
raw | patch | inline | side by side (parent: daf094b)
author | alvinpenner <alvinpenner@users.sourceforge.net> | |
Wed, 15 Jul 2009 23:52:22 +0000 (23:52 +0000) | ||
committer | alvinpenner <alvinpenner@users.sourceforge.net> | |
Wed, 15 Jul 2009 23:52:22 +0000 (23:52 +0000) |
share/extensions/polyhedron_3d.py | patch | blob | history |
index e659427b9d2d63d6cfae3c2aa8906d8647afa897..ae73d6b27925c9da5f65274993bdfcee5a9f0e46 100644 (file)
import inkex
import simplestyle, sys, re
from math import *
+import gettext
+_ = gettext.gettext
try:
from numpy import *
except:
@@ -326,14 +328,16 @@ class Obj(object): #a 3d object defined by the vertices and the faces (eg a poly
if self.fce != []:
self.type = 'face'
else:
- inkex.errormsg(_('No face data found in specified file\n'))
+ inkex.errormsg(_('No face data found in specified file.'))
+ inkex.errormsg(_('Try selecting "Edge Specified" in the Model File tab.\n'))
self.type = 'error'
else:
if self.edg != []:
self.type = 'edge'
else:
- inkex.errormsg(_('No edge data found in specified file\n'))
- obj.type = 'error'
+ inkex.errormsg(_('No edge data found in specified file.'))
+ inkex.errormsg(_('Try selecting "Face Specified" in the Model File tab.\n'))
+ self.type = 'error'
class Poly_3D(inkex.Effect):
def __init__(self):