[gegl/soc-2012-ops: 57/58] Noise-Pick fix random seed remove boolean choice
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2012-ops: 57/58] Noise-Pick fix random seed remove boolean choice
- Date: Wed, 29 Aug 2012 11:09:18 +0000 (UTC)
commit 558449faf1bc1b9b6fc0eaa02f108c8e883216bf
Author: Maxime Nicco <maxime nicco gmail fr>
Date: Tue Aug 28 14:03:14 2012 +0200
Noise-Pick fix random seed
remove boolean choice
operations/common/noise-pick.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/operations/common/noise-pick.c b/operations/common/noise-pick.c
index d0772f7..2fb028a 100644
--- a/operations/common/noise-pick.c
+++ b/operations/common/noise-pick.c
@@ -27,8 +27,6 @@
#ifdef GEGL_CHANT_PROPERTIES
-gegl_chant_boolean (random_seed, _("Random Seed "), FALSE, _("to get a random seed"))
-
gegl_chant_seed (seed, _("Seed"), _("Random seed"))
gegl_chant_double (pct_random, _("Randomization (%)"), 0.0, 100.0, 3.0, _("Radomization"))
@@ -84,10 +82,7 @@ process (GeglOperation *operation,
gint k, b, i;
gint total_pixels;
- if (o->random_seed)
- gr = g_rand_new();
- else
- gr = g_rand_new_with_seed (o->seed);
+ gr = g_rand_new_with_seed (o->seed);
tmp = gegl_buffer_new(result, babl_format ("RGBA float"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]