Fix [#32177] 'Display Pivot' segfaults blender (Rigid Body Constraint + 3dview)
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 25 Jul 2012 12:55:55 +0000 (12:55 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 25 Jul 2012 12:55:55 +0000 (12:55 +0000)
commitc017f910892c5ce30b11bb3763bc13a549fa28e9
tree06753947ccbf5d0e797171f27483df0cd685c7c5
parent62187c386ee22dc9c3bfa6fd60795ed510b4e529
Fix [#32177] 'Display Pivot' segfaults blender (Rigid Body Constraint + 3dview)

draw_rigid_body_pivot() didn't check it could actualy use the given ob_wire_col...

Also silenced a compiler warning, and removed (replaced) a potential dengerous pointer cast (char *[4] -> int* is not safe on 64bit machines!).
source/blender/editors/space_view3d/drawobject.c