2006-09-25 05:12:37 +00:00
|
|
|
from Blender import Draw, sys
|
2006-07-29 07:14:11 +00:00
|
|
|
def Error_NoMeshSelected():
|
|
|
|
Draw.PupMenu('ERROR%t|No mesh objects selected')
|
|
|
|
def Error_NoMeshActive():
|
|
|
|
Draw.PupMenu('ERROR%t|Active object is not a mesh')
|
|
|
|
def Error_NoMeshUvSelected():
|
|
|
|
Draw.PupMenu('ERROR%t|No mesh objects with texface selected')
|
|
|
|
def Error_NoMeshUvActive():
|
|
|
|
Draw.PupMenu('ERROR%t|Active object is not a mesh with texface')
|
|
|
|
|
2006-09-26 04:39:46 +00:00
|
|
|
# File I/O messages
|
|
|
|
def Error_NoFile(path):
|
|
|
|
'''True if file missing, False if files there'''
|
|
|
|
if not sys.exists(sys.expandpath(path)):
|
|
|
|
Draw.PupMenu("Error%t|Can't open file: " + path)
|
|
|
|
return True
|
|
|
|
return False
|
|
|
|
|
2006-09-25 05:12:37 +00:00
|
|
|
def Warning_SaveOver(path):
|
|
|
|
'''Returns - True to save, False dont save'''
|
|
|
|
if sys.exists(sys.expandpath(path)):
|
|
|
|
ret= Draw.PupMenu('Save over%t|' + path)
|
|
|
|
if ret == -1:
|
|
|
|
return False
|
|
|
|
|
|
|
|
return True
|