[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40528] trunk/blender: make new rna variables more consistant with existing names.

Campbell Barton ideasman42 at gmail.com
Sun Sep 25 04:49:47 CEST 2011


Revision: 40528
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40528
Author:   campbellbarton
Date:     2011-09-25 02:49:46 +0000 (Sun, 25 Sep 2011)
Log Message:
-----------
make new rna variables more consistant with existing names.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_data_armature.py
    trunk/blender/release/scripts/startup/bl_ui/properties_game.py
    trunk/blender/release/scripts/startup/bl_ui/space_sequencer.py
    trunk/blender/source/blender/makesrna/intern/rna_armature.c
    trunk/blender/source/blender/makesrna/intern/rna_object.c
    trunk/blender/source/blender/makesrna/intern/rna_sequencer.c
    trunk/blender/source/blender/makesrna/intern/rna_sound.c

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_armature.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_armature.py	2011-09-25 00:34:46 UTC (rev 40527)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_armature.py	2011-09-25 02:49:46 UTC (rev 40528)
@@ -72,7 +72,7 @@
         flow.prop(arm, "use_deform_preserve_volume", text="Quaternion")
 
         if context.scene.render.engine == "BLENDER_GAME":
-            layout.row().prop(arm, "vert_deformer", expand=True)
+            layout.row().prop(arm, "deform_method", expand=True)
 
 
 class DATA_PT_display(ArmatureButtonsPanel, Panel):

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_game.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_game.py	2011-09-25 00:34:46 UTC (rev 40527)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_game.py	2011-09-25 02:49:46 UTC (rev 40528)
@@ -209,14 +209,14 @@
     def draw_header(self, context):
         game = context.active_object.game
 
-        self.layout.prop(game, "create_obstacle", text="")
+        self.layout.prop(game, "use_obstacle_create", text="")
 
     def draw(self, context):
         layout = self.layout
 
         game = context.active_object.game
 
-        layout.active = game.create_obstacle
+        layout.active = game.use_obstacle_create
 
         row = layout.row()
         row.prop(game, "obstacle_radius", text="Radius")

Modified: trunk/blender/release/scripts/startup/bl_ui/space_sequencer.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_sequencer.py	2011-09-25 00:34:46 UTC (rev 40527)
+++ trunk/blender/release/scripts/startup/bl_ui/space_sequencer.py	2011-09-25 02:49:46 UTC (rev 40528)
@@ -584,7 +584,7 @@
             col = split.column()
             col.prop(strip, "filepath", text="")
             col.prop(strip, "mpeg_preseek", text="MPEG Preseek")
-            col.prop(strip, "streamindex", text="Stream Index")
+            col.prop(strip, "stream_index", text="Stream Index")
 
         # TODO, sound???
         # end drawing filename

Modified: trunk/blender/source/blender/makesrna/intern/rna_armature.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_armature.c	2011-09-25 00:34:46 UTC (rev 40527)
+++ trunk/blender/source/blender/makesrna/intern/rna_armature.c	2011-09-25 02:49:46 UTC (rev 40528)
@@ -867,7 +867,7 @@
 	RNA_def_property_update(prop, 0, "rna_Armature_redraw_data");
 	RNA_def_property_flag(prop, PROP_LIB_EXCEPTION);
 
-	prop= RNA_def_property(srna, "vert_deformer", PROP_ENUM, PROP_NONE);
+	prop= RNA_def_property(srna, "deform_method", PROP_ENUM, PROP_NONE);
 	RNA_def_property_enum_sdna(prop, NULL, "gevertdeformer");
 	RNA_def_property_enum_items(prop, prop_vdeformer);
 	RNA_def_property_ui_text(prop, "Vertex Deformer", "");

Modified: trunk/blender/source/blender/makesrna/intern/rna_object.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_object.c	2011-09-25 00:34:46 UTC (rev 40527)
+++ trunk/blender/source/blender/makesrna/intern/rna_object.c	2011-09-25 02:49:46 UTC (rev 40528)
@@ -1524,7 +1524,7 @@
 	RNA_def_property_pointer_sdna(prop, NULL, "bsoft");
 	RNA_def_property_ui_text(prop, "Soft Body Settings", "Settings for Bullet soft body simulation");
 
-	prop= RNA_def_property(srna, "create_obstacle", PROP_BOOLEAN, PROP_NONE);
+	prop= RNA_def_property(srna, "use_obstacle_create", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "gameflag", OB_HASOBSTACLE);
 	RNA_def_property_ui_text(prop, "Create obstacle", "Create representation for obstacle simulation");
 

Modified: trunk/blender/source/blender/makesrna/intern/rna_sequencer.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_sequencer.c	2011-09-25 00:34:46 UTC (rev 40527)
+++ trunk/blender/source/blender/makesrna/intern/rna_sequencer.c	2011-09-25 02:49:46 UTC (rev 40528)
@@ -1421,7 +1421,7 @@
 	RNA_def_property_ui_text(prop, "MPEG Preseek", "For MPEG movies, preseek this many frames");
 	RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
 
-	prop= RNA_def_property(srna, "streamindex", PROP_INT, PROP_NONE);
+	prop= RNA_def_property(srna, "stream_index", PROP_INT, PROP_NONE);
 	RNA_def_property_int_sdna(prop, NULL, "streamindex");
 	RNA_def_property_range(prop, 0, 20);
 	RNA_def_property_ui_text(prop, "Streamindex", "For files with several movie streams, use the stream with the given index");

Modified: trunk/blender/source/blender/makesrna/intern/rna_sound.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_sound.c	2011-09-25 00:34:46 UTC (rev 40527)
+++ trunk/blender/source/blender/makesrna/intern/rna_sound.c	2011-09-25 02:49:46 UTC (rev 40528)
@@ -94,7 +94,7 @@
 	RNA_def_property_ui_text(prop, "Caching", "The sound file is decoded and loaded into RAM");
 	RNA_def_property_update(prop, 0, "rna_Sound_caching_update");
 
-	prop= RNA_def_property(srna, "mono", PROP_BOOLEAN, PROP_NONE);
+	prop= RNA_def_property(srna, "use_mono", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flags", SOUND_FLAGS_MONO);
 	RNA_def_property_ui_text(prop, "Mono", "If the file contains multiple audio channels they are rendered to a single one");
 	RNA_def_property_update(prop, 0, "rna_Sound_update");




More information about the Bf-blender-cvs mailing list