Freestyle: minor code clean-up.

This commit is contained in:
Tamito Kajiyama 2014-05-07 23:15:05 +09:00
parent fe0236be78
commit 1d03a8b309
2 changed files with 2 additions and 4 deletions

@ -270,7 +270,6 @@ void BlenderStrokeRenderer::RenderStrokeRepBasic(StrokeRep *iStrokeRep) const
const bool hasTex = iStrokeRep->getMTex(0) != NULL;
Strip::vertex_container::iterator v[3];
StrokeVertexRep *svRep[3];
/* Vec3r color[3]; */ /* UNUSED */
unsigned int vertex_index, edge_index, loop_index;
Vec2r p;
@ -317,7 +316,6 @@ void BlenderStrokeRenderer::RenderStrokeRepBasic(StrokeRep *iStrokeRep) const
if (visible_faces == 0)
continue;
//me = Mesh.New()
#if 0
Object *object_mesh = BKE_object_add(freestyle_bmain, freestyle_scene, OB_MESH);
#else

@ -650,7 +650,8 @@ public:
/*! Returns the texture used at given index to simulate the marks system for this Stroke */
inline MTex *getMTex(int idx) {
return _mtex[idx];}
return _mtex[idx];
}
/*! Returns true if this Stroke has textures assigned, false otherwise. */
inline bool hasTex() const
@ -760,7 +761,6 @@ public:
for (int a = 0; a < MAX_MTEX; a++) {
if (!_mtex[a]) {
_mtex[a] = mtex;
return 0;
}
}