Browse Source

Only export Actions with a user count > 0

Ralf Hölzemer 11 năm trước cách đây
mục cha
commit
8e6442cf05
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tools/export/blender25/io_scene_dae/export_dae.py

+ 1 - 1
tools/export/blender25/io_scene_dae/export_dae.py

@@ -1144,7 +1144,7 @@ class DaeExporter:
 			self.writel(S_ANIM_CLIPS,0,'<library_animation_clips>')
 
 			for x in bpy.data.actions[:]:
-				if x in self.action_constraints:
+				if x.users==0 or x in self.action_constraints:
 					continue
 
 				bones=[]