Fixed variable assignment values.
parent
846a8959f8
commit
c6297ec333
|
@ -1183,7 +1183,7 @@ int CDisplay::HandleTreeViewPopup(WPARAM wParam,LPARAM lParam)
|
||||||
{
|
{
|
||||||
// get the current selected material
|
// get the current selected material
|
||||||
std::vector<Info> apclrOut;
|
std::vector<Info> apclrOut;
|
||||||
const char* szMatKey;
|
const char* szMatKey = "";
|
||||||
|
|
||||||
switch (LOWORD(wParam))
|
switch (LOWORD(wParam))
|
||||||
{
|
{
|
||||||
|
@ -1251,7 +1251,7 @@ int CDisplay::HandleTreeViewPopup(WPARAM wParam,LPARAM lParam)
|
||||||
clr.lpCustColors = g_aclCustomColors;
|
clr.lpCustColors = g_aclCustomColors;
|
||||||
clr.lpfnHook = NULL;
|
clr.lpfnHook = NULL;
|
||||||
clr.lpTemplateName = NULL;
|
clr.lpTemplateName = NULL;
|
||||||
clr.lCustData = NULL;
|
clr.lCustData = 0;
|
||||||
|
|
||||||
ChooseColor(&clr);
|
ChooseColor(&clr);
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ int CMeshRenderer::DrawUnsorted(unsigned int iIndex)
|
||||||
|
|
||||||
g_piDevice->SetIndices(g_pcAsset->apcMeshes[iIndex]->piIB);
|
g_piDevice->SetIndices(g_pcAsset->apcMeshes[iIndex]->piIB);
|
||||||
|
|
||||||
D3DPRIMITIVETYPE type;
|
D3DPRIMITIVETYPE type = D3DPT_POINTLIST;
|
||||||
switch (g_pcAsset->pcScene->mMeshes[iIndex]->mPrimitiveTypes) {
|
switch (g_pcAsset->pcScene->mMeshes[iIndex]->mPrimitiveTypes) {
|
||||||
case aiPrimitiveType_POINT:
|
case aiPrimitiveType_POINT:
|
||||||
type = D3DPT_POINTLIST;break;
|
type = D3DPT_POINTLIST;break;
|
||||||
|
|
|
@ -522,7 +522,7 @@ void DisplayColorDialog(D3DCOLOR* pclrResult)
|
||||||
clr.lpCustColors = g_aclCustomColors;
|
clr.lpCustColors = g_aclCustomColors;
|
||||||
clr.lpfnHook = NULL;
|
clr.lpfnHook = NULL;
|
||||||
clr.lpTemplateName = NULL;
|
clr.lpTemplateName = NULL;
|
||||||
clr.lCustData = NULL;
|
clr.lCustData = 0;
|
||||||
|
|
||||||
ChooseColor(&clr);
|
ChooseColor(&clr);
|
||||||
|
|
||||||
|
@ -549,7 +549,7 @@ void DisplayColorDialog(D3DXVECTOR4* pclrResult)
|
||||||
clr.lpCustColors = g_aclCustomColors;
|
clr.lpCustColors = g_aclCustomColors;
|
||||||
clr.lpfnHook = NULL;
|
clr.lpfnHook = NULL;
|
||||||
clr.lpTemplateName = NULL;
|
clr.lpTemplateName = NULL;
|
||||||
clr.lCustData = NULL;
|
clr.lCustData = 0;
|
||||||
|
|
||||||
ChooseColor(&clr);
|
ChooseColor(&clr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue