SALOMEDS::SObject_var mySObject;
std::string myName;
- TCreateFromResult(const SALOMEDS::SObject_var& theSObject,
+ TCreateFromResult(const SALOMEDS::SObject_ptr theSObject,
VISU::ColoredPrs3d_i* theServant,
const std::string& theName,
const std::string& theConstructorName,
myServant(theServant),
myConstructorName(theConstructorName),
myArgumentName(theArgumentName),
- mySObject(theSObject),
myName(theName)
- {}
+ {
+ mySObject = SALOMEDS::SObject::_duplicate(theSObject);
+ }
virtual
std::string