From 6e042b19010c5bfed16e576c6c91fceb3c6b0b66 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Fri, 30 Oct 2015 13:24:02 -0700 Subject: [PATCH] re-enable wireframe in PhysicsClient inintialize variables in constructor of PhysicsClient --- build3/premake4.lua | 1 - examples/SharedMemory/PhysicsClientExample.cpp | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build3/premake4.lua b/build3/premake4.lua index b19cf19c7..cba296b34 100644 --- a/build3/premake4.lua +++ b/build3/premake4.lua @@ -128,7 +128,6 @@ { 'ARCHS = "$(ARCHS_STANDARD_32_BIT) $(ARCHS_STANDARD_64_BIT)"', 'VALID_ARCHS = "x86_64 i386"', - 'SDKROOT = "macosx10.9"', } end end diff --git a/examples/SharedMemory/PhysicsClientExample.cpp b/examples/SharedMemory/PhysicsClientExample.cpp index 4308e054d..21ab8be51 100644 --- a/examples/SharedMemory/PhysicsClientExample.cpp +++ b/examples/SharedMemory/PhysicsClientExample.cpp @@ -337,6 +337,9 @@ void PhysicsClientExample::prepareAndSubmitCommand(int commandId) PhysicsClientExample::PhysicsClientExample(GUIHelperInterface* helper) :SharedMemoryCommon(helper), +m_physicsClientHandle(0), +m_selectedBody(-1), +m_prevSelectedBody(-1), m_wantsTermination(false), m_sharedMemoryKey(SHARED_MEMORY_KEY), m_numMotors(0) @@ -381,7 +384,7 @@ void PhysicsClientExample::createButtons() createButton("Initialize Pose",CMD_INIT_POSE, isTrigger); - if (m_selectedBody>=0) + if (m_physicsClientHandle && m_selectedBody>=0) { int numJoints = b3GetNumJoints(m_physicsClientHandle,m_selectedBody); for (int i=0;i