]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix pb with Animation
authorjfa <jfa@opencascade.com>
Thu, 18 Aug 2005 08:55:16 +0000 (08:55 +0000)
committerjfa <jfa@opencascade.com>
Thu, 18 Aug 2005 08:55:16 +0000 (08:55 +0000)
src/VISUGUI/VisuGUI_TimeAnimation.cxx
src/VISU_I/VISU_TimeAnimation.cxx

index 93987d245daec1d2c35b5783adfcefe651a611af..0598764e379343b0ef5915d9b230453c50914dfd 100644 (file)
@@ -1084,7 +1084,7 @@ void VisuGUI_TimeAnimationDlg::onTypeChange (int index)
 void VisuGUI_TimeAnimationDlg::addField (_PTR(SObject) theSObject)
 {
   myPlayFrame->setEnabled(false);
-  myAnimator->addField(VISU::GetSObject(theSObject));
+  myAnimator->addField(theSObject);
 }
 
 //************************************************************************
index abb4672ce0be4e92b39079a84f35352846c13494..de93129cd35c7114697bc64174ae8bc4715074cf 100644 (file)
@@ -111,7 +111,8 @@ void VISU_TimeAnimation::addField (_PTR(SObject) theField)
 //************************************************************************
 void VISU_TimeAnimation::addField (SALOMEDS::SObject_ptr theField)
 {
-  _PTR(SObject) aField = VISU::GetClientSObject(theField, myStudy);
+  SALOMEDS::SObject_var theFieldDup = SALOMEDS::SObject::_duplicate(theField);
+  _PTR(SObject) aField = VISU::GetClientSObject(theFieldDup, myStudy);
   addField(aField);
 }