Skip to content

Commit

Permalink
[mujoco] comment out the portion of dae2stl script
Browse files Browse the repository at this point in the history
  • Loading branch information
sugikazu75 committed Oct 9, 2023
1 parent 6edbabe commit 9828fd1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions aerial_robot_simulation/scripts/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

def delete_all():
if bpy.app.version[1] > 80:
for col in bpy.data.collections:
for item in col.objects:
col.objects.unlink(item)
bpy.data.objects.remove(item, do_unlink=True)
# for col in bpy.data.collections:
# for item in col.objects:
# col.objects.unlink(item)
# bpy.data.objects.remove(item, do_unlink=True)

for item in bpy.context.scene.collection.objects:
bpy.context.scene.collection.objects.unlink(item)
bpy.data.objects.remove(item, do_unlink=True)
# for item in bpy.context.scene.collection.objects:
# bpy.context.scene.collection.objects.unlink(item)
# bpy.data.objects.remove(item, do_unlink=True)

for item in bpy.data.meshes:
bpy.data.meshes.remove(item, do_unlink=True)
Expand All @@ -30,14 +30,14 @@ def delete_all():
# bpy.data.materials.remove(item)

if bpy.app.version[1] <= 79:
for item in bpy.context.scene.objects:
bpy.context.scene.objects.unlink(item)
for item in bpy.data.objects:
bpy.data.objects.remove(item)
# for item in bpy.context.scene.objects:
# bpy.context.scene.objects.unlink(item)
# for item in bpy.data.objects:
# bpy.data.objects.remove(item)
for item in bpy.data.meshes:
bpy.data.meshes.remove(item)
for item in bpy.data.materials:
bpy.data.materials.remove(item)
# for item in bpy.data.materials:
# bpy.data.materials.remove(item)

def process_subdirectories(root):
for foldername, subfolders, filenames in os.walk(root):
Expand Down

0 comments on commit 9828fd1

Please sign in to comment.