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:
authorErwin Coumans <blender@erwincoumans.com>2006-12-20 09:43:43 +0300
committerErwin Coumans <blender@erwincoumans.com>2006-12-20 09:43:43 +0300
commit1852d1a410c23e5be7792ac810b2568c930c86a1 (patch)
tree2034af773cd29d4500c7103f2b96912099805236 /source/blender/src/header_info.c
parent427e306196f07ed0f276de614a98cfb783c2e4d6 (diff)
Enable 'show physics visualization' in the Game Menu. Should help to locate problems with collision detection/physics (also useful when baking, and/or using the new rigidbody constraints).
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r--source/blender/src/header_info.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c
index 57b35174acd..d6c217534bb 100644
--- a/source/blender/src/header_info.c
+++ b/source/blender/src/header_info.c
@@ -1439,6 +1439,7 @@ static void do_info_gamemenu(void *arg, int event)
case G_FILE_AUTOPLAY:
case G_FILE_GAME_TO_IPO:
case G_FILE_GAME_MAT:
+ case G_FILE_SHOW_PHYSICS:
G.fileflags ^= event;
break;
default:
@@ -1493,6 +1494,13 @@ static uiBlock *info_gamemenu(void *arg_unused)
uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_DEHLT, "Show Framerate and Profile", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, G_FILE_SHOW_FRAMERATE, "");
}
+
+ if(G.fileflags & G_FILE_SHOW_PHYSICS) {
+ uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_HLT, "Show Physics Visualization", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, G_FILE_SHOW_PHYSICS, "");
+ } else {
+ uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_DEHLT, "Show Physics Visualization", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, G_FILE_SHOW_PHYSICS, "");
+ }
+
if(G.fileflags & G_FILE_SHOW_DEBUG_PROPS) {
uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_HLT, "Show Debug Properties", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, G_FILE_SHOW_DEBUG_PROPS, "");
} else {