From 7c9b8aa6ccb83b92ec8f42594348263e6ff638aa Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 13 Aug 2014 10:38:08 +1000 Subject: Fix possible uninitialized var use --- source/blender/freestyle/intern/stroke/Stroke.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/freestyle') diff --git a/source/blender/freestyle/intern/stroke/Stroke.h b/source/blender/freestyle/intern/stroke/Stroke.h index f919cd36f5c..86c667a38b6 100644 --- a/source/blender/freestyle/intern/stroke/Stroke.h +++ b/source/blender/freestyle/intern/stroke/Stroke.h @@ -664,7 +664,7 @@ public: /*! Returns true if this Stroke has textures assigned, false otherwise. */ inline bool hasTex() const { - return (_mtex && _mtex[0] != NULL) || _nodeTree; + return (_mtex[0] != NULL) || _nodeTree; } /*! Returns true if this Stroke uses a texture with tips, false otherwise. */ -- cgit v1.2.3