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:
authorDalai Felinto <dfelinto@gmail.com>2018-05-15 19:19:08 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-05-15 19:19:08 +0300
commit9439df1ab84299ca5e9dddcdacf1c8f1451f158f (patch)
treed1c561c44f2ad0f3f8415db55197c418a4ad26b7 /source/blender/makesrna/intern/rna_scene.c
parent4f8b6428bc4300199332d1b47387354714d02993 (diff)
Copy on write: VIEW3D_OT_clear_render_border + rna
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 4c43fb50248..0084c44cecc 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1643,8 +1643,7 @@ static void rna_Scene_simplify_update(Main *bmain, Scene *scene, PointerRNA *ptr
static void rna_SceneRenderData_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
{
Scene *sce = ptr->id.data;
-
- DEG_id_tag_update(&sce->id, 0);
+ DEG_id_tag_update(&sce->id, DEG_TAG_COPY_ON_WRITE);
}
static void rna_Scene_use_persistent_data_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
@@ -5038,7 +5037,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
RNA_def_property_boolean_sdna(prop, NULL, "mode", R_BORDER);
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
RNA_def_property_ui_text(prop, "Border", "Render a user-defined border region, within the frame size ");
- RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
+ RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_SceneRenderData_update");
prop = RNA_def_property(srna, "border_min_x", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "border.xmin");