[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30774] trunk/blender/source/blender/ blenkernel/intern/brush.c: * Fix: CPU usage was going way up because some WM_main_add_notifier functions that I thought were commented out somehow became active again .

Jason Wilkins Jason.A.Wilkins at gmail.com
Mon Jul 26 22:42:51 CEST 2010


Revision: 30774
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30774
Author:   jwilkins
Date:     2010-07-26 22:42:50 +0200 (Mon, 26 Jul 2010)

Log Message:
-----------
* Fix: CPU usage was going way up because some WM_main_add_notifier functions that I thought were commented out somehow became active again.

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/brush.c

Modified: trunk/blender/source/blender/blenkernel/intern/brush.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/brush.c	2010-07-26 20:17:21 UTC (rev 30773)
+++ trunk/blender/source/blender/blenkernel/intern/brush.c	2010-07-26 20:42:50 UTC (rev 30774)
@@ -1238,7 +1238,7 @@
 	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 @@
 			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 @@
 			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 @@
 			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 @@
 	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 @@
 	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)





More information about the Bf-blender-cvs mailing list