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 18:53:00 +0400
committerJoerg Mueller <nexyon@gmail.com>2009-08-29 18:53:00 +0400
commitc03004f93eb94d4af10acaf0b7e8ca7adb097dd0 (patch)
treedb393de4271777c8fc33bba0baf9f44ef360051d /source/blender/editors/sound/sound_ops.c
parent3080a6273325bdfcde3d1898334e3749aa2f9b2d (diff)
2.5: Added some sound actuator UI to reveal its real power, check it out! :)
Diffstat (limited to 'source/blender/editors/sound/sound_ops.c')
-rw-r--r--source/blender/editors/sound/sound_ops.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c
index 75204207284..303ca0eaefd 100644
--- a/source/blender/editors/sound/sound_ops.c
+++ b/source/blender/editors/sound/sound_ops.c
@@ -43,6 +43,7 @@
#include "BKE_report.h"
#include "BKE_packedFile.h"
#include "BKE_sound.h"
+#include "BKE_utildefines.h"
#include "BLI_blenlib.h"
@@ -86,6 +87,10 @@ static int open_exec(bContext *C, wmOperator *op)
return OPERATOR_CANCELLED;
}
+ if (RNA_boolean_get(op->ptr, "cache")) {
+ sound_cache(sound, 0);
+ }
+
return OPERATOR_FINISHED;
}
@@ -110,6 +115,7 @@ void SOUND_OT_open(wmOperatorType *ot)
/* properties */
WM_operator_properties_filesel(ot, FOLDERFILE|SOUNDFILE|MOVIEFILE);
+ RNA_def_boolean(ot->srna, "cache", FALSE, "Cache", "Cache the sound in memory.");
}
/* ******************************************************* */