Cleanup: unused speaker flag
authorCampbell Barton <ideasman42@gmail.com>
Mon, 11 Feb 2019 06:55:15 +0000 (17:55 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 11 Feb 2019 06:55:52 +0000 (17:55 +1100)
source/blender/makesdna/DNA_speaker_types.h
source/blender/makesrna/intern/rna_speaker.c

index b777404..d3fc5ec 100644 (file)
@@ -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__ */
index c01ac95..3412357 100644 (file)
@@ -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);