space928 / Blender-O3D-IO-Public

A plugin supporting blender 2.79.x-3.x.x for importing and exporting OMSI .sco, .cfg, and .o3d files
GNU General Public License v3.0
39 stars 6 forks source link

Replace this with a low level method to prevent slow down #46

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

See: https://blenderartists.org/t/python-slowing-down-over-time/569534

https://api.github.com/space928/Blender-O3D-IO-Public/blob/30fc61afe3d0de1faf0f0d5f75fba87ae10d4ce1/o3d_io/io_omsi_tile.py#L330


                    o.select_set(False)
                for o in loaded_objs[path]:
                    o.select_set(True)
            # TODO: Replace this with a low level method to prevent slow down
            # See: https://blenderartists.org/t/python-slowing-down-over-time/569534
            bpy.ops.object.duplicate_move_linked()

        else:
github-actions[bot] commented 1 year ago

Closed in 734b4df774329c68085f978beb7d29e123b98b88