diff options
author | Thomas Dinges <blender@dingto.org> | 2009-12-02 21:35:44 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-12-02 21:35:44 +0300 |
commit | 2a6d535d23e80b649ba1f3bc048f1e368d7a63c7 (patch) | |
tree | cb751e284258eb970fecd367306099539c76acbd /source/blender/editors/space_node | |
parent | 59ae9d855d6d350bfbd0dbe2d3bfba39b0889888 (diff) |
Fixed a part of [#20197] dof node bugs.
* False greying out.
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index 924b4b2563e..354d7a4edd3 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -628,7 +628,7 @@ static void node_composit_buts_defocus(uiLayout *layout, bContext *C, PointerRNA uiItemR(layout, NULL, 0, ptr, "gamma_correction", 0); col = uiLayoutColumn(layout, 0); - uiLayoutSetActive(col, RNA_boolean_get(ptr, "use_zbuffer")==0); + uiLayoutSetActive(col, RNA_boolean_get(ptr, "use_zbuffer")==1); uiItemR(col, NULL, 0, ptr, "f_stop", 0); uiItemR(layout, NULL, 0, ptr, "max_blur", 0); @@ -643,7 +643,7 @@ static void node_composit_buts_defocus(uiLayout *layout, bContext *C, PointerRNA col = uiLayoutColumn(layout, 0); uiItemR(col, NULL, 0, ptr, "use_zbuffer", 0); sub = uiLayoutColumn(col, 0); - uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_zbuffer")); + uiLayoutSetActive(sub, RNA_boolean_get(ptr, "use_zbuffer")==0); uiItemR(sub, NULL, 0, ptr, "z_scale", 0); } |