[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18253] branches/blender2.5/blender/source /blender: * renamed some of the RNA sound identifiers
Campbell Barton
ideasman42 at gmail.com
Fri Jan 2 10:35:34 CET 2009
Revision: 18253
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18253
Author: campbellbarton
Date: 2009-01-02 10:35:33 +0100 (Fri, 02 Jan 2009)
Log Message:
-----------
* renamed some of the RNA sound identifiers
* was missing a MEM_freeN in previous commit
Modified Paths:
--------------
branches/blender2.5/blender/source/blender/blenkernel/intern/report.c
branches/blender2.5/blender/source/blender/makesrna/intern/rna_sound.c
branches/blender2.5/blender/source/blender/windowmanager/intern/wm_event_system.c
Modified: branches/blender2.5/blender/source/blender/blenkernel/intern/report.c
===================================================================
--- branches/blender2.5/blender/source/blender/blenkernel/intern/report.c 2009-01-02 08:03:20 UTC (rev 18252)
+++ branches/blender2.5/blender/source/blender/blenkernel/intern/report.c 2009-01-02 09:35:33 UTC (rev 18253)
@@ -247,5 +247,6 @@
printf(cstring);
fflush(stdout);
+ MEM_freeN(cstring);
}
Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_sound.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_sound.c 2009-01-02 08:03:20 UTC (rev 18252)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_sound.c 2009-01-02 09:35:33 UTC (rev 18253)
@@ -56,7 +56,7 @@
{SAMPLE_AIFF, "SAMPLE_AIFF", "AIFF", "Audio Interchange File Format"},
{0, NULL, NULL, NULL}};
- srna= RNA_def_struct(brna, "sample", "ID");
+ srna= RNA_def_struct(brna, "Sample", "ID");
RNA_def_struct_sdna(srna, "bSample");
RNA_def_struct_ui_text(srna, "SoundSample", "Sound Sample");
@@ -94,7 +94,7 @@
StructRNA *srna;
PropertyRNA *prop;
- srna= RNA_def_struct(brna, "soundslistener", "ID");
+ srna= RNA_def_struct(brna, "SoundListener", "ID");
RNA_def_struct_sdna(srna, "bSoundListener");
RNA_def_struct_ui_text(srna, "Sound Listener", "DOC_BROKEN");
@@ -102,19 +102,23 @@
RNA_def_property_ui_text(prop, "Gain", "Overall volume for Game Engine sound.");
RNA_def_property_ui_range(prop, 0.0, 1.0, 10, 4);
- prop= RNA_def_property(srna, "dopplerfactor", PROP_FLOAT, PROP_NONE);
+ prop= RNA_def_property(srna, "doppler_factor", PROP_FLOAT, PROP_NONE);
+ RNA_def_property_float_sdna(prop, NULL, "dopplerfactor");
RNA_def_property_ui_text(prop, "Doppler Factor", "Amount of Doppler effect in Game Engine sound.");
RNA_def_property_ui_range(prop, 0.0, 10.0, 1, 4);
- prop= RNA_def_property(srna, "dopplervelocity", PROP_FLOAT, PROP_NONE);
+ prop= RNA_def_property(srna, "doppler_velocity", PROP_FLOAT, PROP_NONE);
+ RNA_def_property_float_sdna(prop, NULL, "dopplervelocity");
RNA_def_property_ui_text(prop, "Doppler Velocity", "The speed of sound in the Game Engine.");
RNA_def_property_ui_range(prop, 0.0, 10000.0, 0.1, 4);
- prop= RNA_def_property(srna, "numsoundsblender", PROP_INT, PROP_UNSIGNED);
+ prop= RNA_def_property(srna, "num_sounds_blender", PROP_INT, PROP_UNSIGNED);
+ RNA_def_property_int_sdna(prop, NULL, "numsoundsblender");
RNA_def_property_ui_text(prop, "Total Sounds in Blender", "The total number of sounds currently linked and available.");
RNA_def_property_flag(prop, PROP_NOT_EDITABLE);
- prop= RNA_def_property(srna, "numsoundsgameengine", PROP_INT, PROP_UNSIGNED);
+ prop= RNA_def_property(srna, "num_sounds_gameengine", PROP_INT, PROP_UNSIGNED);
+ RNA_def_property_int_sdna(prop, NULL, "numsoundsgameengine");
RNA_def_property_ui_text(prop, "Total Sounds in Game Engine", "The total number of sounds in the Game Engine.");
RNA_def_property_flag(prop, PROP_NOT_EDITABLE);
Modified: branches/blender2.5/blender/source/blender/windowmanager/intern/wm_event_system.c
===================================================================
--- branches/blender2.5/blender/source/blender/windowmanager/intern/wm_event_system.c 2009-01-02 08:03:20 UTC (rev 18252)
+++ branches/blender2.5/blender/source/blender/windowmanager/intern/wm_event_system.c 2009-01-02 09:35:33 UTC (rev 18253)
@@ -399,7 +399,7 @@
}
else if(!(retval & OPERATOR_RUNNING_MODAL)) {
if (reports)
- op->reports= NULL; /* dont let the operator free reports given by the user */
+ op->reports= NULL; /* dont let the operator free reports passed to this function */
WM_operator_free(op);
}
}
More information about the Bf-blender-cvs
mailing list