Skip to content

Commit

Permalink
Fix BaseRenderModels::GetComponentName and BaseRenderModels::GetCompo…
Browse files Browse the repository at this point in the history
…nentRenderModelName for the HMD model - Fixes #94
  • Loading branch information
ZNixian committed Apr 6, 2019
1 parent 72cd434 commit 46f70ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenOVR/Reimpl/BaseRenderModels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ uint32_t BaseRenderModels::GetComponentName(const char * pchRenderModelName, uin

string name = pchRenderModelName;

if (name != "renderLeftHand" && name != "renderRightHand") {
if (name != "renderLeftHand" && name != "renderRightHand" && name != "oculusHmdRenderModel") {
string err = "Unknown render model name: " + string(pchRenderModelName);
OOVR_ABORT(err.c_str());
return VRRenderModelError_None;
Expand Down Expand Up @@ -400,7 +400,7 @@ uint32_t BaseRenderModels::GetComponentRenderModelName(const char * pchRenderMod
char * componentModelName, uint32_t componentModelNameLen) {

string name = pchRenderModelName;
if (name != "renderLeftHand" && name != "renderRightHand") {
if (name != "renderLeftHand" && name != "renderRightHand" && name != "oculusHmdRenderModel") {
string err = "Unknown render model name: " + string(pchRenderModelName);
OOVR_ABORT(err.c_str());
return VRRenderModelError_None;
Expand Down

0 comments on commit 46f70ca

Please sign in to comment.