Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-23 11:26:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-23 11:26:08 +0400
commitf9ab956d53f7eabe3dbcd90431601a6d9326ed9d (patch)
tree5252cf16a084fc2ad0816ad32590ddef043289a1 /source/blender/makesrna
parentbb17a6b8f86e47c53e4a050202ea0c502c254368 (diff)
py api:
bpy.data.scenes.tag() was missing.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_main_api.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c
index a0d3cdef9eb..10a45fbb94d 100644
--- a/source/blender/makesrna/intern/rna_main_api.c
+++ b/source/blender/makesrna/intern/rna_main_api.c
@@ -90,11 +90,6 @@
#include "ED_screen.h"
-Tex *rna_Main_add_texture(Main *UNUSED(bmain), const char *name)
-{
- return add_texture(name);
-}
-
Camera *rna_Main_cameras_new(Main *UNUSED(bmain), const char *name)
{
ID *id = add_camera(name);
@@ -681,6 +676,10 @@ void RNA_def_main_scenes(BlenderRNA *brna, PropertyRNA *cprop)
parm = RNA_def_pointer(func, "scene", "Scene", "", "Scene to remove");
RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
+ func = RNA_def_function(srna, "tag", "rna_Main_scenes_tag");
+ parm = RNA_def_boolean(func, "value", 0, "Value", "");
+ RNA_def_property_flag(parm, PROP_REQUIRED);
+
prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
RNA_def_property_boolean_funcs(prop, "rna_Main_scenes_is_updated_get", NULL);