We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It happens, because 3PO model has no "Motion" bone. Should use function similar to SP-vanilla renderer.
rend2-unified-wip/code/rd-rend2/G2_API.cpp
qboolean G2API_SetNewOrigin(CGhoul2Info* ghlInfo, const int boltIndex) { if (G2_SetupModelPointers(ghlInfo)) { /* if (boltIndex < 0) { char modelName[MAX_QPATH]; if (ghlInfo->currentModel && ghlInfo->currentModel->name[0]) { strcpy(modelName, ghlInfo->currentModel->name); } else { strcpy(modelName, "[Unknown - unexpected]"); } Com_Error(ERR_DROP, "Bad boltindex (%i) trying to SetNewOrigin (naughty naughty!)\nModel %s\n", boltIndex, modelName); } */ // log instead of warning message on screen, like in SP-vanilla renderer G2ERROR(boltIndex >= 0 && boltIndex < (int)ghlInfo->mBltlist.size(), "invalid boltIndex"); // check for valid boltIndex before applying new origin if (boltIndex >= 0 && boltIndex < (int)ghlInfo->mBltlist.size()) { ghlInfo->mNewOrigin = boltIndex; ghlInfo->mFlags |= GHOUL2_NEWORIGIN; } return qtrue; } return qfalse; }
The text was updated successfully, but these errors were encountered:
[rend2-sp] Fix G2API_SetNewOrigin incorrect drop error
664bab7
Fixes #54 Co-Authored-By: AntiAnti <17278566+antianti@users.noreply.github.com>
No branches or pull requests
It happens, because 3PO model has no "Motion" bone. Should use function similar to SP-vanilla renderer.
rend2-unified-wip/code/rd-rend2/G2_API.cpp
The text was updated successfully, but these errors were encountered: