experimental support for spline curves representation #3233

there is still no full support but as a workaround I've added blender converting curves to meshes and back to curves so we could preserve the actual shapes

before - https://i.imgur.com/9F542Iy.png
after - https://i.imgur.com/t58RlkF.png
This commit is contained in:
Andrej730
2023-07-04 10:57:22 +05:00
parent c0402687b5
commit b03c4da7bf
2 changed files with 37 additions and 6 deletions
@@ -320,6 +320,15 @@ class Blender:
context.view_layer.objects.active = active_object
active_object.select_set(True)
@classmethod
def set_objects_selection(cls, context, active_object, selected_objects):
for obj in context.selected_objects:
obj.select_set(False)
for obj in selected_objects:
obj.select_set(True)
context.view_layer.objects.active = active_object
active_object.select_set(True)
@classmethod
def append_data_block(cls, filepath, data_block_type, name, link=False, relative=False):
if Path(filepath) == Path(bpy.data.filepath):