Fixed a part of [#20197] dof node bugs.

* False greying out.
This commit is contained in:
Thomas Dinges
2009-12-02 18:35:44 +00:00
parent 59ae9d855d
commit 2a6d535d23

View File

@@ -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);
}