forked from bartvdbraak/blender
7fce181d11
import_obj - comments, docstring additions, cleanup. OBJ export: -renamed export_obj faster edge exporting (use edges LOOSE flag rather then finding zero face user edges) check for file before overwriting use object iterators
19 lines
578 B
Python
19 lines
578 B
Python
from Blender import Draw, sys
|
|
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')
|
|
|
|
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
|