mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 07:20:40 +00:00
Merge pull request #813 from Areloch/MiscConvexToolFixes
Fix Misc ConvexShape Tooling Issues
This commit is contained in:
commit
5fb227a1e7
4 changed files with 95 additions and 18 deletions
|
|
@ -263,7 +263,7 @@ bool ConvexShape::protectedSetSurfaceTexture(void *object, const char *index, co
|
|||
|
||||
surfaceMaterial surface;
|
||||
|
||||
surface._setMaterial(data);
|
||||
surface._setMaterial(StringTable->insert(data));
|
||||
|
||||
shape->mSurfaceTextures.push_back(surface);
|
||||
|
||||
|
|
|
|||
|
|
@ -1075,7 +1075,7 @@ void GuiConvexEditorCtrl::renderScene(const RectI & updateRect)
|
|||
Point3F boxPos = objBox.getCenter();
|
||||
objMat.mulP( boxPos );
|
||||
|
||||
drawer->drawObjectBox( desc, objBox.getExtents(), boxPos, objMat, ColorI::WHITE );
|
||||
drawer->drawObjectBox( desc, objBox.getExtents() / 2, boxPos, objMat, ColorI::WHITE );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue