diff options
Diffstat (limited to 'source/blender/freestyle/intern/stroke')
-rwxr-xr-x | source/blender/freestyle/intern/stroke/Stroke.cpp | 12 | ||||
-rwxr-xr-x | source/blender/freestyle/intern/stroke/Stroke.h | 4 |
2 files changed, 1 insertions, 15 deletions
diff --git a/source/blender/freestyle/intern/stroke/Stroke.cpp b/source/blender/freestyle/intern/stroke/Stroke.cpp index 01a71f2d4eb..f6cefdfee34 100755 --- a/source/blender/freestyle/intern/stroke/Stroke.cpp +++ b/source/blender/freestyle/intern/stroke/Stroke.cpp @@ -45,9 +45,6 @@ StrokeAttribute::StrokeAttribute() _userAttributesVec2f = 0; _userAttributesVec3f = 0; _visible = true; - - py_sa = 0; - } StrokeAttribute::StrokeAttribute(const StrokeAttribute& iBrother) { @@ -69,10 +66,6 @@ StrokeAttribute::StrokeAttribute(const StrokeAttribute& iBrother) _userAttributesVec3f = new Vec3fMap(*iBrother._userAttributesVec3f); else _userAttributesVec3f = 0; - - py_sa = 0; - - } StrokeAttribute::StrokeAttribute( float iRColor, float iGColor, float iBColor, float iAlpha, @@ -92,9 +85,6 @@ StrokeAttribute::StrokeAttribute( float iRColor, float iGColor, float iBColor, _userAttributesReal = 0; _userAttributesVec2f = 0; _userAttributesVec3f = 0; - -py_sa = 0; - } StrokeAttribute::StrokeAttribute(const StrokeAttribute& a1, const StrokeAttribute& a2, float t) @@ -145,8 +135,6 @@ StrokeAttribute::StrokeAttribute(const StrokeAttribute& a1, const StrokeAttribut }else{ _userAttributesVec3f = 0; } - - py_sa = 0; } StrokeAttribute::~StrokeAttribute() diff --git a/source/blender/freestyle/intern/stroke/Stroke.h b/source/blender/freestyle/intern/stroke/Stroke.h index a6a025e44a0..796b5dc9e2d 100755 --- a/source/blender/freestyle/intern/stroke/Stroke.h +++ b/source/blender/freestyle/intern/stroke/Stroke.h @@ -52,8 +52,6 @@ class LIB_STROKE_EXPORT StrokeAttribute { public: - PyObject *py_sa; - /*! default constructor */ StrokeAttribute(); /*! Copy constructor */ @@ -550,7 +548,7 @@ public: inline unsigned int strokeVerticesSize() const {return _Vertices.size();} /*! Returns the i-th StrokeVertex constituting the Stroke. */ - inline StrokeVertex* strokeVerticeAt(unsigned int i) {return _Vertices.at(i);} + inline StrokeVertex& strokeVerticeAt(unsigned int i) {return *(_Vertices.at(i));} // Iterator access (Interface1D) /*! Returns an Interface0DIterator pointing on the first StrokeVertex of the |