diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-03-09 17:24:33 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-03-09 17:25:37 +0400 |
commit | 6fdbab43662d3f646f7d94bfaad83111f7d41830 (patch) | |
tree | 0182b0b8655e6dd03a829059377ba20649890b91 | |
parent | a96eb73a1214900d43acb291b408f42b954747cd (diff) |
Minor code cleanup.
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 3cd091c0749..90d14a7ba6f 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); |