mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-31 08:56:34 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user