[Bf-blender-cvs] [1ecfe42d379] blender2.8: Remove DEG_TAG_COPY_ON_WRITE tag on rna update for scene.render

Dalai Felinto noreply at git.blender.org
Wed May 23 15:35:13 CEST 2018


Commit: 1ecfe42d379bf55c271ca9cfc210d3739e03fe43
Author: Dalai Felinto
Date:   Wed May 23 15:34:42 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB1ecfe42d379bf55c271ca9cfc210d3739e03fe43

Remove DEG_TAG_COPY_ON_WRITE tag on rna update for scene.render

This is no longer needed since rBb4b745b72064.

===================================================================

M	source/blender/makesrna/intern/rna_scene.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index a86492fc462..8ac3b8c0a5c 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1631,12 +1631,6 @@ static void rna_Scene_simplify_update(Main *bmain, Scene *scene, PointerRNA *ptr
 		rna_Scene_use_simplify_update(bmain, scene, 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, DEG_TAG_COPY_ON_WRITE);
-}
-
 static void rna_Scene_use_persistent_data_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
 {
 	Scene *sce = ptr->id.data;
@@ -4891,7 +4885,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
 	RNA_def_property_enum_sdna(prop, NULL, "preview_pixel_size");
 	RNA_def_property_enum_items(prop, pixel_size_items);
 	RNA_def_property_ui_text(prop, "Pixel Size", "Pixel size for viewport rendering");
-	RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_SceneRenderData_update");
+	RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
 
 	prop = RNA_def_property(srna, "pixel_aspect_x", PROP_FLOAT, PROP_NONE);
 	RNA_def_property_float_sdna(prop, NULL, "xasp");
@@ -5029,7 +5023,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, "rna_SceneRenderData_update");
+	RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
 	
 	prop = RNA_def_property(srna, "border_min_x", PROP_FLOAT, PROP_NONE);
 	RNA_def_property_float_sdna(prop, NULL, "border.xmin");



More information about the Bf-blender-cvs mailing list