From e51abe3ca891be75cfbe57317927fa23ad0b0f26 Mon Sep 17 00:00:00 2001
From: Dan <danielg@iastate.edu>
Date: Tue, 25 May 2010 14:55:49 -0500
Subject: [PATCH] - Changed shareFC in SharePtrGraphOp to skip non-pointer fields

- This keeps these fields from getting added to the changed list by preventing their editField fucntion called.
---
 Source/System/GraphOp/OSGSharePtrGraphOp.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Source/System/GraphOp/OSGSharePtrGraphOp.cpp b/Source/System/GraphOp/OSGSharePtrGraphOp.cpp
index 83a18f7..89174c1 100644
--- a/Source/System/GraphOp/OSGSharePtrGraphOp.cpp
+++ b/Source/System/GraphOp/OSGSharePtrGraphOp.cpp
@@ -334,6 +334,10 @@ FieldContainer *SharePtrGraphOp::shareFC(FieldContainer *fc)
         if(fDesc->isInternal() == true)
             continue;
 
+		// skip non-pointer fields
+		if(!fDesc->getFieldType().isPtrField())
+			continue;
+
         FieldContainerPtrSFieldBase::EditHandlePtr sfPtrHandle =
             boost::dynamic_pointer_cast<
                 FieldContainerPtrSFieldBase::EditHandle>(fc->editField(i));
-- 
1.6.5.1.1367.gcd48

