diff options
author | Jason Wilkins <Jason.A.Wilkins@gmail.com> | 2010-07-27 00:42:50 +0400 |
---|---|---|
committer | Jason Wilkins <Jason.A.Wilkins@gmail.com> | 2010-07-27 00:42:50 +0400 |
commit | 2ab8a2a516109c9c892f2343dfebadb3a7995c69 (patch) | |
tree | 6538205e0dbcf0d9940239b6af58d8bbc2b40ced /source/blender/blenkernel/intern/brush.c | |
parent | 833d42d92e894c3250b2829861ef8694cc85b95a (diff) |
* Fix: CPU usage was going way up because some WM_main_add_notifier functions that I thought were commented out somehow became active again.
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index a032f7ecca6..a8a53e3fbe6 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -1238,7 +1238,7 @@ void brush_set_size(Brush *brush, int size) else brush->size= size; - WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush); + //WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush); } int brush_size(Brush *brush) @@ -1258,7 +1258,7 @@ void brush_set_use_locked_size(Brush *brush, int value) brush->flag &= ~BRUSH_LOCK_SIZE; } - WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush); + //WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush); } int brush_use_locked_size(Brush *brush) @@ -1278,7 +1278,7 @@ void brush_set_use_size_pressure(Brush *brush, int value) brush->flag &= ~BRUSH_SIZE_PRESSURE; } - WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush); + //WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush); } int brush_use_size_pressure(Brush *brush) @@ -1298,7 +1298,7 @@ void brush_set_use_alpha_pressure(Brush *brush, int value) brush->flag &= ~BRUSH_ALPHA_PRESSURE; } - WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush); + //WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush); } int brush_use_alpha_pressure(Brush *brush) @@ -1313,7 +1313,7 @@ void brush_set_unprojected_radius(Brush *brush, float unprojected_radius) else brush->unprojected_radius= unprojected_radius; - WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush); + //WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush); } float brush_unprojected_radius(Brush *brush) @@ -1328,7 +1328,7 @@ void brush_set_alpha(Brush *brush, float alpha) else brush->alpha= alpha; - WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush); + //WM_main_add_notifier(NC_BRUSH|NA_EDITED, brush); } float brush_alpha(Brush *brush) |