Ignore:
Timestamp:
03/13/14 01:00:33 (11 years ago)
Author:
sz
Message:

getObjectTarget is now the recommended way to retrieve object from ExtValue?, can post the standard warning message about missing object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/vm/classes/3dobject.cpp

    r156 r171  
    193193Pt3D_Ext* Pt3D_Ext::fromObject(const ExtValue& v)
    194194{
    195 if (v.type!=TObj) return 0;
    196 const ExtObject& o=v.getObject();
    197 return (Pt3D_Ext*)o.getTarget(getStaticParam().getName());
     195return (Pt3D_Ext*)v.getObjectTarget(getStaticParam().getName());
    198196}
    199197
     
    444442Orient_Ext* Orient_Ext::fromObject(const ExtValue& v)
    445443{
    446 if (v.type!=TObj) return 0;
    447 const ExtObject& o=v.getObject();
    448 return (Orient_Ext*)o.getTarget(getStaticParam().getName());
     444return (Orient_Ext*)v.getObjectTarget(getStaticParam().getName());
    449445}
    450446
     
    573569ReferenceObj* ReferenceObj::fromObject(const ExtValue& v)
    574570{
    575 if (v.type!=TObj) return 0;
    576 const ExtObject& o=v.getObject();
    577 return (ReferenceObj*)o.getTarget(getStaticParam().getName());
    578 }
     571return (ReferenceObj*)v.getObjectTarget(getStaticParam().getName());
     572}
Note: See TracChangeset for help on using the changeset viewer.