autogenerate bridges now assigns group name to the operation

pull/44/merge
vilemnovak 2016-04-11 10:39:14 +02:00
rodzic 91234abfd8
commit ee89236d8e
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -1955,13 +1955,14 @@ def addAutoBridges(o):
'''attempt to add auto bridges as set of curves'''
getOperationSources(o)
if not o.onlycurves:
o.warnings.append('not curves')
o.warnings+=('not curves')
return;
bridgegroupname=o.bridges_group_name
if bridgegroupname == '' or bpy.data.groups.get(bridgegroupname) == None:
bridgegroupname = 'bridges_'+o.name
bpy.data.groups.new(bridgegroupname)
g= bpy.data.groups[bridgegroupname]
o.bridges_group_name = bridgegroupname
for ob in o.objects:
if ob.type=='CURVE':
@ -1984,7 +1985,7 @@ def addAutoBridges(o):
g.objects.link( addBridge(p.x,p.y,pi,o.bridges_width, o.cutter_diameter*1))
mw=ob.matrix_world
def getBridgesPoly(o):
if not hasattr(o, 'bridgespolyorig'):
bridgegroupname=o.bridges_group_name