Changeset 171 for cpp/frams/vm/classes/3dobject.cpp
- Timestamp:
- 03/13/14 01:00:33 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/vm/classes/3dobject.cpp
r156 r171 193 193 Pt3D_Ext* Pt3D_Ext::fromObject(const ExtValue& v) 194 194 { 195 if (v.type!=TObj) return 0; 196 const ExtObject& o=v.getObject(); 197 return (Pt3D_Ext*)o.getTarget(getStaticParam().getName()); 195 return (Pt3D_Ext*)v.getObjectTarget(getStaticParam().getName()); 198 196 } 199 197 … … 444 442 Orient_Ext* Orient_Ext::fromObject(const ExtValue& v) 445 443 { 446 if (v.type!=TObj) return 0; 447 const ExtObject& o=v.getObject(); 448 return (Orient_Ext*)o.getTarget(getStaticParam().getName()); 444 return (Orient_Ext*)v.getObjectTarget(getStaticParam().getName()); 449 445 } 450 446 … … 573 569 ReferenceObj* ReferenceObj::fromObject(const ExtValue& v) 574 570 { 575 if (v.type!=TObj) return 0; 576 const ExtObject& o=v.getObject(); 577 return (ReferenceObj*)o.getTarget(getStaticParam().getName()); 578 } 571 return (ReferenceObj*)v.getObjectTarget(getStaticParam().getName()); 572 }
Note: See TracChangeset
for help on using the changeset viewer.