From: jfa Date: Thu, 18 Aug 2005 08:55:16 +0000 (+0000) Subject: Fix pb with Animation X-Git-Tag: T_3_0_2a1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f51f61660d9ccfb32a6cdbef5587c3a13762c755;p=modules%2Fvisu.git Fix pb with Animation --- diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 93987d24..0598764e 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -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); } //************************************************************************ diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index abb4672c..de93129c 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -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); }