Не подтверждена Коммит 8ef515fa создал по автору nikitron's avatar nikitron Зафиксировано автором GitHub
Просмотр файлов

not a solution

владелец ce95e30d
......@@ -551,9 +551,11 @@ class SvPrifilizer(bpy.types.Operator):
names = str([o.name for o in objs])[1:-2]
# collect paths
op = []
clos = []
for obj in objs:
for spl in obj.data.splines:
op.append(spl.bezier_points)
clos.append(spl.use_cyclic_u)
# define path to text
values = '# Here is autogenerated values, \n# Please, rename text to avoid data loose.\n'
......@@ -564,7 +566,7 @@ class SvPrifilizer(bpy.types.Operator):
out_points = []
out_names = []
ss = 0
for ob_points in op:
for ob_points, clo in zip(op,clos):
values += '# Spline %a\n' % (ss)
ss += 1
# handles preperation
......@@ -645,12 +647,12 @@ class SvPrifilizer(bpy.types.Operator):
# preserving overlapping
#out_points.append(ob_points[0].co[:])
#out_names.append(['C'])
if not line:
if clo and not line:
# hacky way till be fixed x for curves not only for lines
values += '# hacky way till be fixed x\n# for curves not only for lines'
values += '\nL ' + self.stringadd(ob_points[0].co,ob_points[0].select_control_point)
values += '\nx \n\n'
else:
elif clo:
values += '\nx \n\n'
if self.knotselected:
......@@ -977,5 +979,5 @@ def unregister():
_ = [unregister_class(cls) for cls in reversed(classes)]
# if __name__ == '__main__':
# register()
#if __name__ == '__main__':
# register()
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать