Get rid of hardcoded structure definition in DM drawing callbacks
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 20 Dec 2011 08:47:36 +0000 (08:47 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 20 Dec 2011 08:47:36 +0000 (08:47 +0000)
commit2f9925f9137ada4a88f8a619e6a95221b6690dfb
tree1a012d46892abc00c65840021289e6f6c58b634a
parent0be004bb2ff380c41365506ae3d8488ff2691a85
Get rid of hardcoded structure definition in DM drawing callbacks

Structures passing to DM callbacks as userData used to be defined in both callee
and callbacks itself which made it difficult and unsafe to add new properties
to user data.

Added typedefs for this structures and use them in callbacks and callee functions.
source/blender/editors/space_view3d/drawmesh.c
source/blender/editors/space_view3d/drawobject.c