[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31444] branches/soc-2008-mxcurioni: RNA renaming according to the changes in trunk revision 31435.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Wed Aug 18 16:03:11 CEST 2010


Revision: 31444
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31444
Author:   kjym3
Date:     2010-08-18 16:03:11 +0200 (Wed, 18 Aug 2010)

Log Message:
-----------
RNA renaming according to the changes in trunk revision 31435.

Revision Links:
--------------
    http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31435

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/release/scripts/ui/properties_render.py
    branches/soc-2008-mxcurioni/source/blender/makesrna/intern/rna_scene.c

Modified: branches/soc-2008-mxcurioni/release/scripts/ui/properties_render.py
===================================================================
--- branches/soc-2008-mxcurioni/release/scripts/ui/properties_render.py	2010-08-18 13:16:34 UTC (rev 31443)
+++ branches/soc-2008-mxcurioni/release/scripts/ui/properties_render.py	2010-08-18 14:03:11 UTC (rev 31444)
@@ -124,7 +124,7 @@
         col = split.column()
         col.prop(rl, "use_edge_enhance")
         col.prop(rl, "use_strand")
-        col.prop(rl, "freestyle")
+        col.prop(rl, "use_freestyle")
 
         layout.separator()
 
@@ -178,7 +178,7 @@
     def poll(cls, context):
         rd = context.scene.render
         rl = rd.layers[rd.active_layer_index]
-        return rl and rl.freestyle
+        return rl and rl.use_freestyle
 
     def draw(self, context):
         layout = self.layout
@@ -283,7 +283,7 @@
     def poll(cls, context):
         rd = context.scene.render
         rl = rd.layers[rd.active_layer_index]
-        if rl and rl.freestyle:
+        if rl and rl.use_freestyle:
             freestyle = rl.freestyle_settings
             return freestyle.mode == "EDITOR" and freestyle.active_lineset
         return False

Modified: branches/soc-2008-mxcurioni/source/blender/makesrna/intern/rna_scene.c
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/makesrna/intern/rna_scene.c	2010-08-18 13:16:34 UTC (rev 31443)
+++ branches/soc-2008-mxcurioni/source/blender/makesrna/intern/rna_scene.c	2010-08-18 14:03:11 UTC (rev 31444)
@@ -1397,7 +1397,7 @@
 	if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
 	else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
 
-	prop= RNA_def_property(srna, "freestyle", PROP_BOOLEAN, PROP_NONE);
+	prop= RNA_def_property(srna, "use_freestyle", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_FRS);
 	RNA_def_property_ui_text(prop, "Freestyle", "Render stylized strokes in this Layer.");
 	if(scene) RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);





More information about the Bf-blender-cvs mailing list