Hello Victor,

Victor Haefner wrote:
I want to clone a geometry, no threads involved, just clustering

GeometryPtr tmp = makePlaneGeo(1,1,1,1);
GeometryPtr geo = tmp->clone();

geo is not visible on the cluster side :(

GeometryPtr geo = makePlaneGeo(1,1,1,1);

works perfectly, no idea what happens, I tried some editCPs, but no luck

..I fear there is really not more to say :/

I believe I just fixed it, there was a begin/endEdit missing in the code that clones the properties. Can you update and try again please (patch also attached)?

I would like to force a changelist merge with the cluster, what would I need for that?

I'm not 100% sure what you mean by "changelist merge with the cluster", can you give some more details what you'd like to do? When using the ClusterWindow the changelist is normally sent as part of the ClusterWindow's render call, I don't think there is an interface to trigger sending the changelist without rendering.

        Cheers,
                Carsten

Index: Source/System/NodeCores/Drawables/Geometry/OSGGeoPropertyBase.inl
===================================================================
RCS file: /cvsroot/opensg/OpenSG/Source/System/NodeCores/Drawables/Geometry/OSGGeoPropertyBase.inl,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- Source/System/NodeCores/Drawables/Geometry/OSGGeoPropertyBase.inl	18 Sep 2009 09:42:27 -0000	1.13
+++ Source/System/NodeCores/Drawables/Geometry/OSGGeoPropertyBase.inl	27 Apr 2010 15:44:29 -0000	1.14
@@ -351,7 +351,10 @@
 {
     PtrType obj = GeoProperty<GeoPropertyDesc>::create();
     
+    beginEditCP(obj);
     obj->_field.setValues( _field );
+    endEditCP(obj);
+
     return obj;
 }
 
------------------------------------------------------------------------------
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to