scene.update() rna function, so operators and data thats tagged for update get their data updated.

dont show popup for 'Load Factory Settings'
This commit is contained in:
Campbell Barton
2010-01-25 10:20:41 +00:00
parent 5844560ec2
commit 7eb5504d79
2 changed files with 5 additions and 0 deletions

View File

@@ -90,6 +90,8 @@ class INFO_MT_file(bpy.types.Menu):
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()

View File

@@ -108,6 +108,9 @@ void RNA_api_scene(StructRNA *srna)
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.");