[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26242] trunk/blender: scene.update() rna function, so operators and data thats tagged for update get their data updated.

Campbell Barton ideasman42 at gmail.com
Mon Jan 25 11:20:41 CET 2010


Revision: 26242
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26242
Author:   campbellbarton
Date:     2010-01-25 11:20:41 +0100 (Mon, 25 Jan 2010)

Log Message:
-----------
scene.update() rna function, so operators and data thats tagged for update get their data updated.
dont show popup for 'Load Factory Settings'

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_info.py
    trunk/blender/source/blender/makesrna/intern/rna_scene_api.c

Modified: trunk/blender/release/scripts/ui/space_info.py
===================================================================
--- trunk/blender/release/scripts/ui/space_info.py	2010-01-25 10:16:36 UTC (rev 26241)
+++ trunk/blender/release/scripts/ui/space_info.py	2010-01-25 10:20:41 UTC (rev 26242)
@@ -90,6 +90,8 @@
         layout.separator()
 
         layout.operator("screen.userpref_show", text="User Preferences...", icon='PREFERENCES')
+        
+        layout.operator_context = 'EXEC_AREA'
         layout.operator("wm.read_homefile", text="Load Factory Settings").factory = True
 
         layout.separator()

Modified: trunk/blender/source/blender/makesrna/intern/rna_scene_api.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_scene_api.c	2010-01-25 10:16:36 UTC (rev 26241)
+++ trunk/blender/source/blender/makesrna/intern/rna_scene_api.c	2010-01-25 10:20:41 UTC (rev 26242)
@@ -108,6 +108,9 @@
 	parm= RNA_def_int(func, "frame", 0, MINAFRAME, MAXFRAME, "", "Frame number to set.", MINAFRAME, MAXFRAME);
 	RNA_def_property_flag(parm, PROP_REQUIRED);
 
+	func= RNA_def_function(srna, "update", "scene_update_tagged");
+	RNA_def_function_ui_description(func, "Update data tagged to be updated from previous access to data or operators.");
+
 	/* Add Keying Set */
 	func= RNA_def_function(srna, "add_keying_set", "rna_Scene_add_keying_set");
 	RNA_def_function_ui_description(func, "Add a new Keying Set to Scene.");





More information about the Bf-blender-cvs mailing list