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:
authorCampbell Barton <ideasman42@gmail.com>2019-02-11 09:55:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-11 09:55:52 +0300
commit3ce5e5a85778bc339b5275198beb74d90fc65334 (patch)
tree11deae9bc72473bd9b20a7f8a9676c6787a3c360 /source/blender
parent42368a2321d52d33bf9f49616fd65bbc905840d1 (diff)
Cleanup: unused speaker flag
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesdna/DNA_speaker_types.h2
-rw-r--r--source/blender/makesrna/intern/rna_speaker.c6
2 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/makesdna/DNA_speaker_types.h b/source/blender/makesdna/DNA_speaker_types.h
index b777404fd94..d3fc5ecb126 100644
--- a/source/blender/makesdna/DNA_speaker_types.h
+++ b/source/blender/makesdna/DNA_speaker_types.h
@@ -56,6 +56,6 @@ typedef struct Speaker {
/* flag */
#define SPK_DS_EXPAND (1<<0)
#define SPK_MUTED (1<<1)
-#define SPK_RELATIVE (1<<2)
+// #define SPK_RELATIVE (1<<2) /* UNUSED */
#endif /* __DNA_SPEAKER_TYPES_H__ */
diff --git a/source/blender/makesrna/intern/rna_speaker.c b/source/blender/makesrna/intern/rna_speaker.c
index c01ac95dc14..34123570c68 100644
--- a/source/blender/makesrna/intern/rna_speaker.c
+++ b/source/blender/makesrna/intern/rna_speaker.c
@@ -57,12 +57,6 @@ static void rna_def_speaker(BlenderRNA *brna)
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_SOUND);
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
- prop = RNA_def_property(srna, "use_relative", PROP_BOOLEAN, PROP_NONE);
- RNA_def_property_boolean_sdna(prop, NULL, "flag", SPK_RELATIVE);
- RNA_def_property_clear_flag(prop, PROP_EDITABLE);
- RNA_def_property_ui_text(prop, "Relative", "Whether the source is relative to the camera or not");
- /* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
-
prop = RNA_def_property(srna, "sound", PROP_POINTER, PROP_NONE);
RNA_def_property_struct_type(prop, "Sound");
RNA_def_property_flag(prop, PROP_EDITABLE);