[Bf-blender-cvs] [6fdbab4] master: Minor code cleanup.
Tamito Kajiyama
noreply at git.blender.org
Sun Mar 9 14:26:06 CET 2014
Commit: 6fdbab43662d3f646f7d94bfaad83111f7d41830
Author: Tamito Kajiyama
Date: Sun Mar 9 22:24:33 2014 +0900
https://developer.blender.org/rB6fdbab43662d3f646f7d94bfaad83111f7d41830
Minor code cleanup.
===================================================================
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 3cd091c..90d14a7 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -2346,10 +2346,8 @@ void rna_def_render_layer_common(StructRNA *srna, int scene)
prop = RNA_def_property(srna, "use_freestyle", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "layflag", SCE_LAY_FRS);
RNA_def_property_ui_text(prop, "Freestyle", "Render stylized strokes in this Layer");
- if (scene)
- RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
- else
- RNA_def_property_clear_flag(prop, PROP_EDITABLE);
+ if (scene) RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
+ else RNA_def_property_clear_flag(prop, PROP_EDITABLE);
/* passes */
prop = RNA_def_property(srna, "use_pass_combined", PROP_BOOLEAN, PROP_NONE);
More information about the Bf-blender-cvs
mailing list