Index: trunk/psModules/src/objects/pmSource.c
===================================================================
--- trunk/psModules/src/objects/pmSource.c	(revision 8471)
+++ trunk/psModules/src/objects/pmSource.c	(revision 8474)
@@ -6,6 +6,6 @@
  *  @author EAM, IfA: significant modifications.
  *
- *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-22 20:46:55 $
+ *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-22 23:20:23 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -225,4 +225,7 @@
                 continue;
             }
+            if (tmpSrc->mode & PM_SOURCE_MODE_BLEND) {
+                continue;
+            }
 
             // for the moment, force splane dimensions to be 10x10 image pix
@@ -258,5 +261,7 @@
 
         if (peaks == NULL)
+        {
             return (psfClump);
+        }
     }
     // XXX EAM : possible errors:
@@ -395,5 +400,5 @@
         if ((Nsatpix > 1) && big) {
             tmpSrc->type = PM_SOURCE_TYPE_STAR;
-            tmpSrc->mode = PM_SOURCE_MODE_SATSTAR;
+            tmpSrc->mode |= PM_SOURCE_MODE_SATSTAR;
             Nsatstar ++;
             continue;
@@ -403,5 +408,5 @@
         if (Nsatpix > 1) {
             tmpSrc->type = PM_SOURCE_TYPE_SATURATED;
-            tmpSrc->mode = PM_SOURCE_MODE_DEFAULT;
+            tmpSrc->mode |= PM_SOURCE_MODE_DEFAULT;
             Nsat ++;
             continue;
@@ -413,5 +418,5 @@
         if ((sigX < 0.05) || (sigY < 0.05)) {
             tmpSrc->type = PM_SOURCE_TYPE_DEFECT;
-            tmpSrc->mode = PM_SOURCE_MODE_DEFAULT;
+            tmpSrc->mode |= PM_SOURCE_MODE_DEFAULT;
             Ncr ++;
             continue;
@@ -421,5 +426,5 @@
         if ((sigX > (clump.X + 3*clump.dX)) || (sigY > (clump.Y + 3*clump.dY))) {
             tmpSrc->type = PM_SOURCE_TYPE_EXTENDED;
-            tmpSrc->mode = PM_SOURCE_MODE_DEFAULT;
+            tmpSrc->mode |= PM_SOURCE_MODE_DEFAULT;
             Next ++;
             continue;
@@ -435,5 +440,5 @@
         if ((tmpSrc->moments->SN > PSF_SN_LIM) && (radius < 1.5)) {
             tmpSrc->type = PM_SOURCE_TYPE_STAR;
-            tmpSrc->mode = PM_SOURCE_MODE_PSFSTAR;
+            tmpSrc->mode |= PM_SOURCE_MODE_PSFSTAR;
             Npsf ++;
             continue;
@@ -442,5 +447,5 @@
         // random type of star
         tmpSrc->type = PM_SOURCE_TYPE_STAR;
-        tmpSrc->mode = PM_SOURCE_MODE_DEFAULT;
+        tmpSrc->mode |= PM_SOURCE_MODE_DEFAULT;
     }
 
