Changeset 229


Ignore:
Timestamp:
04/24/14 23:58:46 (10 years ago)
Author:
Maciej Komosinski
Message:

Removed false warning "XYZ object expected..." in Matrix functions when a numeric argument is acceptable

Location:
cpp/frams/vm/classes
Files:
2 edited

Legend:

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

    r222 r229  
    191191}
    192192
    193 Pt3D_Ext* Pt3D_Ext::fromObject(const ExtValue& v)
    194 {
    195 return (Pt3D_Ext*)v.getObjectTarget(getStaticParam().getName());
     193Pt3D_Ext* Pt3D_Ext::fromObject(const ExtValue& v,bool warn)
     194{
     195return (Pt3D_Ext*)v.getObjectTarget(getStaticParam().getName(), warn);
    196196}
    197197
  • cpp/frams/vm/classes/3dobject.h

    r222 r229  
    3939static ExtObject makeDynamicObject(Pt3D_Ext* p);
    4040static ExtObject makeDynamicObject(const Pt3D& p);
    41 static Pt3D_Ext* fromObject(const ExtValue& v);
     41static Pt3D_Ext* fromObject(const ExtValue& v,bool warn=true);
    4242static Param& getStaticParam();
    4343static ParamEntry* getStaticParamtab();
Note: See TracChangeset for help on using the changeset viewer.