Ignore:
Timestamp:
03/13/14 01:00:33 (6 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/genoobj.cpp

    r138 r171  
    107107}
    108108
    109 Geno* GenoObj::fromObject(const ExtValue& v)
     109Geno* GenoObj::fromObject(const ExtValue& v, bool warn)
    110110{
    111 if (v.type!=TObj) return 0;
    112 const ExtObject& o=v.getObject();
    113 //if ((o.param!=&getStaticParam())&&(o.param!=&getDynamicParam())) return 0;
    114 return (Geno*)o.getTarget(getStaticParam().getName());
     111return (Geno*)v.getObjectTarget(getStaticParam().getName(), warn);
    115112}
Note: See TracChangeset for help on using the changeset viewer.