Fixed properties

This commit is contained in:
andreja6
2018-10-25 18:18:08 -07:00
parent 30a05af3b2
commit f7d6781698
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ PartInstance::PartInstance(void) : _bevelSize(0.03f), _parseVert(0), _debugTimer
void PartInstance::postRender(RenderDevice *rd)
{
G3D::GFontRef fntdominant = NULL;
if(fntdominant != NULL)
if(fntdominant.notNull())
{
Vector3 gamepoint = cFrame.translation;
Vector3 camerapoint = rd->getCameraToWorldMatrix().translation;

View File

@@ -164,7 +164,7 @@ LRESULT CALLBACK PropProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
LPNMPROPGRID lpnmp = (LPNMPROPGRID)pnm;
LPPROPGRIDITEM item = PropGrid_GetItemData(pnm->hwndFrom,lpnmp->iIndex);
selectedInstance->PropUpdate(item);
propWind->SetProperties(selectedInstance);
//propWind->SetProperties(selectedInstance);
}
}
break;