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:
@@ -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()
|
||||
|
||||
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user