TurboFisto
[carveJwlIkooP6JGAAIwe30JlM.git] / blender_export.py
index 0d4c63ac0aba6786a5325c98f9b9d1dee1fb4360..dcab66f51953ffbf08fa2b2d080b4e34328995ab 100644 (file)
@@ -1249,6 +1249,7 @@ def sr_compile( collection ):
             compile_obj_transform( obj, audio.transform )
             audio.clip_start = audio_clip_count
             audio.clip_count = len(obj_data.files)
+            audio_clip_count += audio.clip_count
             audio.max_channels = obj_data.max_channels
             audio.volume = obj_data.volume
 
@@ -2801,7 +2802,8 @@ def cv_draw():
             cv_ent_volume( obj )
          #}
          elif ent_type == 'ent_audio':#{
-            cv_draw_sphere( obj.location, obj.scale[0], (1,1,0) )
+            if obj.SR_data.ent_audio[0].flag_3d:
+               cv_draw_sphere( obj.location, obj.scale[0], (1,1,0) )
          #}
       #}
    #}