Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Mueller <nexyon@gmail.com>2009-08-29 01:47:05 +0400
committerJoerg Mueller <nexyon@gmail.com>2009-08-29 01:47:05 +0400
commit03b3d2cb794c5fe03fc4c27b006044e24e294cfc (patch)
treea6f8a8279672105dea25b9fa55978de9a8734302 /source/blender/blenkernel/intern
parent99eae3d93a8281b7c947ce8a42aafbe8b3c9a706 (diff)
Sound packing/unpacking operators.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r--source/blender/blenkernel/intern/sound.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c
index 3794fbe90ef..8159f2f8c4c 100644
--- a/source/blender/blenkernel/intern/sound.c
+++ b/source/blender/blenkernel/intern/sound.c
@@ -163,7 +163,7 @@ void sound_cache(struct bSound* sound, int ignore)
AUD_unload(sound->cache);
sound->cache = AUD_bufferSound(sound->handle);
- sound->changed = TRUE;
+ sound->changed++;
}
void sound_delete_cache(struct bSound* sound)
@@ -204,7 +204,7 @@ void sound_load(struct Main *main, struct bSound* sound)
if(sound->id.lib)
path = sound->id.lib->filename;
else
- path = main ? main->name : NULL;
+ path = main ? main->name : G.sce;
BLI_convertstringcode(fullpath, path);
@@ -229,7 +229,7 @@ void sound_load(struct Main *main, struct bSound* sound)
break;
}
#endif
- sound->changed = TRUE;
+ sound->changed++;
}
}