Skip to content

Commit

Permalink
Update rectd_wrapper.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Nov 4, 2023
1 parent 9e53977 commit 4a769e0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Engine/Qt4/NatronEngine/rectd_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,11 @@ static PyObject* Sbk_RectDFunc_intersect(PyObject* self, PyObject* args)
// intersect(RectD,RectD*)const
// Begin code injection

RectD t;
cppSelf->intersect(*cppArg0,&t);
// Original:
//RectD t;
//cppSelf->intersect(*cppArg0,&t);
// Fix after https://github.com/NatronGitHub/Natron/pull/914 :
RectD t = cppSelf->intersect(*cppArg0);
pyResult = Shiboken::Conversions::copyToPython((SbkObjectType*)SbkNatronEngineTypes[SBK_RECTD_IDX], &t);
return pyResult;

Expand All @@ -410,8 +413,11 @@ static PyObject* Sbk_RectDFunc_intersect(PyObject* self, PyObject* args)
// intersect(double,double,double,double,RectD*)const
// Begin code injection

RectD t;
cppSelf->intersect(cppArg0,cppArg1,cppArg2,cppArg3,&t);
// Original:
//RectD t;
//cppSelf->intersect(cppArg0,cppArg1,cppArg2,cppArg3,&t);
// Fix after https://github.com/NatronGitHub/Natron/pull/914 :
RectD t = cppSelf->intersect(cppArg0,cppArg1,cppArg2,cppArg3);
pyResult = Shiboken::Conversions::copyToPython((SbkObjectType*)SbkNatronEngineTypes[SBK_RECTD_IDX], &t);
return pyResult;

Expand Down

0 comments on commit 4a769e0

Please sign in to comment.