Fixed: Prototype of method NotifyRefChanged changed in latest 3dsmax SDK versions

This commit is contained in:
kervala 2016-12-04 17:27:29 +01:00
parent 8f8578c57b
commit 380dd952ed
7 changed files with 14 additions and 19 deletions

View file

@ -87,8 +87,7 @@ class PO2RPO : public Modifier {
void GetClassName(TSTR& s) {s = GetString(IDS_CLASS_NAME);} void GetClassName(TSTR& s) {s = GetString(IDS_CLASS_NAME);}
RefTargetHandle Clone( RemapDir &remap ); RefTargetHandle Clone( RemapDir &remap );
RefResult NotifyRefChanged(Interval changeInt, RefTargetHandle hTarget, RefResult NotifyRefChanged(const Interval& changeInt, RefTargetHandle hTarget, PartID& partID, RefMessage message, BOOL propagate);
PartID& partID, RefMessage message);
int NumSubs() { return 0; } int NumSubs() { return 0; }
TSTR SubAnimName(int i) { return GetString(IDS_PARAMS); } TSTR SubAnimName(int i) { return GetString(IDS_PARAMS); }

View file

@ -221,7 +221,7 @@ void PO2RPO::EndEditParams( IObjParam *ip, ULONG flags,Animatable *next)
// ----------------------------------------------------------------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------------------------------------------------------------
//From ReferenceMaker //From ReferenceMaker
RefResult PO2RPO::NotifyRefChanged(Interval changeInt, RefTargetHandle hTarget,PartID& partID, RefMessage message) RefResult PO2RPO::NotifyRefChanged(const Interval& changeInt, RefTargetHandle hTarget, PartID& partID, RefMessage message, BOOL propagate)
{ {
//TODO: Add code to handle the various reference changed messages //TODO: Add code to handle the various reference changed messages
return REF_SUCCEED; return REF_SUCCEED;

View file

@ -574,8 +574,7 @@ class EditPatchMod : public Modifier, IPatchOps, IPatchSelect, ISubMtlAPI, Attac
static bool additiveTile; static bool additiveTile;
static bool automaticLighting; static bool automaticLighting;
RefResult NotifyRefChanged( Interval changeInt,RefTargetHandle hTarget, RefResult NotifyRefChanged(const Interval& changeInt, RefTargetHandle hTarget, PartID& partID, RefMessage message, BOOL propagate) { return REF_SUCCEED; }
PartID& partID, RefMessage message ) { return REF_SUCCEED; }
int selLevel; int selLevel;

View file

@ -304,10 +304,10 @@ void RPO::GetDeformBBox(TimeValue t, Box3& box, Matrix3 *tm, BOOL useSel )
// ------------------------------------------------------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------------------------------------------------------
//From ReferenceMaker //From ReferenceMaker
RefResult RPO::NotifyRefChanged( Interval changeInt, RefTargetHandle hTarget,PartID& partID, RefMessage message ) RefResult RPO::NotifyRefChanged(const Interval& changeInt, RefTargetHandle hTarget,PartID& partID, RefMessage message, BOOL propagate )
{ {
//TODO: Implement, if the object makes references to other things //TODO: Implement, if the object makes references to other things
//return PatchObject::NotifyRefChanged( changeInt, hTarget, partID, message); //return PatchObject::NotifyRefChanged( changeInt, hTarget, partID, message, propagate);
return(REF_SUCCEED); return(REF_SUCCEED);
} }

View file

@ -422,8 +422,7 @@ class PaintPatchMod : public Modifier
static bool automaticLighting; static bool automaticLighting;
static bool lockBorders; static bool lockBorders;
RefResult NotifyRefChanged( Interval changeInt,RefTargetHandle hTarget, RefResult NotifyRefChanged(const Interval& changeInt, RefTargetHandle hTarget, PartID& partID, RefMessage message, BOOL propagate) { return REF_SUCCEED; }
PartID& partID, RefMessage message ) { return REF_SUCCEED; }
bool includeMeshes; bool includeMeshes;
bool preloadTiles; bool preloadTiles;

View file

@ -161,9 +161,7 @@ public:
Animatable* SubAnim(int i); Animatable* SubAnim(int i);
TSTR SubAnimName(int i); TSTR SubAnimName(int i);
RefResult NotifyRefChanged( Interval changeInt,RefTargetHandle hTarget, RefResult NotifyRefChanged(const Interval& changeInt,RefTargetHandle hTarget, PartID& partID, RefMessage message, BOOL propagate);
PartID& partID, RefMessage message);
CreateMouseCallBack* GetCreateMouseCallBack() {return NULL;} CreateMouseCallBack* GetCreateMouseCallBack() {return NULL;}
void BeginEditParams(IObjParam *ip, ULONG flags,Animatable *prev); void BeginEditParams(IObjParam *ip, ULONG flags,Animatable *prev);

View file

@ -85,8 +85,7 @@ class RGBAdd: public Texmap {
int RemapRefOnLoad(int iref); int RemapRefOnLoad(int iref);
RefTargetHandle Clone(RemapDir &remap = DefaultRemapDir()); RefTargetHandle Clone(RemapDir &remap = DefaultRemapDir());
RefResult NotifyRefChanged( Interval changeInt, RefTargetHandle hTarget, RefResult NotifyRefChanged(const Interval &changeInt, RefTargetHandle hTarget, PartID& partID, RefMessage message, BOOL propagate);
PartID& partID, RefMessage message );
// IO // IO
IOResult Save(ISave *isave); IOResult Save(ISave *isave);
@ -365,9 +364,10 @@ TSTR RGBAdd::SubAnimName(int i) {
} }
} }
RefResult RGBAdd::NotifyRefChanged(Interval changeInt, RefTargetHandle hTarget, RefResult RGBAdd::NotifyRefChanged(const Interval& changeInt, RefTargetHandle hTarget, PartID& partID, RefMessage message, BOOL propagate)
PartID& partID, RefMessage message ) { {
switch (message) { switch (message)
{
case REFMSG_CHANGE: case REFMSG_CHANGE:
ivalid.SetEmpty(); ivalid.SetEmpty();
if (hTarget == pblock) if (hTarget == pblock)