Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2015-01-20 20:29:31 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-01-20 20:32:06 +0300
commit9d9dc06014ea7f8fd186246d1e55d429c5193cb6 (patch)
treefaad9521f23f32c9ce1b9331f9763c69d52bedae /source/blender/editors/space_view3d/drawsimdebug.c
parent3356f3f0bb15fa50c2920e4bc428a8375b43f321 (diff)
Made SimDebugData into a single global instance.
This way it doesn't have to be stored as DNA runtime pointers or passed down as a function argument. Currently there is now no property or button to enable debugging, this will be added again later.
Diffstat (limited to 'source/blender/editors/space_view3d/drawsimdebug.c')
-rw-r--r--source/blender/editors/space_view3d/drawsimdebug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/drawsimdebug.c b/source/blender/editors/space_view3d/drawsimdebug.c
index 5f3779d540f..6113bfd4143 100644
--- a/source/blender/editors/space_view3d/drawsimdebug.c
+++ b/source/blender/editors/space_view3d/drawsimdebug.c
@@ -147,13 +147,13 @@ static void draw_sim_debug_elements(SimDebugData *debug_data, float imat[4][4])
glEnd();
}
-void draw_sim_debug_data(Scene *UNUSED(scene), View3D *UNUSED(v3d), ARegion *ar, Base *UNUSED(base), SimDebugData *debug_data)
+void draw_sim_debug_data(Scene *UNUSED(scene), View3D *UNUSED(v3d), ARegion *ar)
{
RegionView3D *rv3d = ar->regiondata;
/*Object *ob = base->object;*/
float imat[4][4];
- if (!debug_data)
+ if (!_sim_debug_data)
return;
invert_m4_m4(imat, rv3d->viewmatob);
@@ -164,7 +164,7 @@ void draw_sim_debug_data(Scene *UNUSED(scene), View3D *UNUSED(v3d), ARegion *ar,
glPushMatrix();
glLoadMatrixf(rv3d->viewmat);
- draw_sim_debug_elements(debug_data, imat);
+ draw_sim_debug_elements(_sim_debug_data, imat);
glPopMatrix();