diff options
Diffstat (limited to 'source/blender/freestyle/intern/stroke/Stroke.h')
-rw-r--r-- | source/blender/freestyle/intern/stroke/Stroke.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/stroke/Stroke.h b/source/blender/freestyle/intern/stroke/Stroke.h index 27a105bb1cc..d6c8c4f0d07 100644 --- a/source/blender/freestyle/intern/stroke/Stroke.h +++ b/source/blender/freestyle/intern/stroke/Stroke.h @@ -652,6 +652,12 @@ public: inline MTex *getMTex(int idx) { return _mtex[idx];} + /*! Returns true if this Stroke has textures assigned, false otherwise. */ + inline bool hasTex() const + { + return _mtex[0] != NULL; + } + /*! Returns true if this Stroke uses a texture with tips, false otherwise. */ inline bool hasTips() const { |