[fix] InstanceProp
This commit is contained in:
@@ -106,6 +106,7 @@ HRESULT CInstancedProp::Ready_Components(void* pArg)
|
||||
|
||||
m_isShake = pDesc->isShake;
|
||||
m_isTree = pDesc->isTree;
|
||||
m_bEnableRigidbody = pDesc->bEnableRigidbody;
|
||||
|
||||
/* Com_VIBuffer_Instance_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, pDesc->strPrototypeTag,
|
||||
@@ -114,17 +115,15 @@ HRESULT CInstancedProp::Ready_Components(void* pArg)
|
||||
|
||||
m_iNumMesh = m_pVIBufferInstanceCom->Get_NumMesh();
|
||||
|
||||
if(pDesc->bEnableRigidbody)
|
||||
if(m_bEnableRigidbody)
|
||||
{
|
||||
if (FAILED(ReadyForPhysX()))
|
||||
return E_FAIL;
|
||||
|
||||
/* Laod Instance Data */
|
||||
if (FAILED(Load_InstancedProp(pDesc->strInstanceDataPath.c_str(), pDesc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
/* Laod Instance Data */
|
||||
if (FAILED(Load_InstancedProp(pDesc->strInstanceDataPath.c_str(), pDesc)))
|
||||
return E_FAIL;
|
||||
|
||||
if (m_isShake)
|
||||
m_pVIBufferInstanceCom->Set_Shake_Value(pDesc->vRadius, pDesc->vSpeed);
|
||||
@@ -193,7 +192,7 @@ HRESULT CInstancedProp::Load_InstancedProp(const _char* pFilePath, INSTANCE_PROP
|
||||
|
||||
vector<_wstring> RigidBodyTags;
|
||||
|
||||
|
||||
|
||||
for (_uint i = 0; i < m_iNumMesh; ++i)
|
||||
{
|
||||
RigidBodyTags.push_back(CMyTools::ToWstring(m_pVIBufferInstanceCom->Get_MeshName(i)) + to_wstring(i));
|
||||
@@ -206,7 +205,7 @@ HRESULT CInstancedProp::Load_InstancedProp(const _char* pFilePath, INSTANCE_PROP
|
||||
|
||||
WorldMatrices.push_back(WorldMatrix);
|
||||
|
||||
if(pDesc->bEnableRigidbody)
|
||||
if(m_bEnableRigidbody)
|
||||
{
|
||||
for (_uint i = 0; i < m_iNumMesh; ++i)
|
||||
{
|
||||
|
||||
@@ -343,13 +343,13 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
// 맵 로드할지 안할지 bool 설정
|
||||
// ---------------------------------
|
||||
_bool isReady_Background = { true };
|
||||
_bool isReady_Hogsmeade = { true };
|
||||
_bool isReady_Hogsmeade = { false };
|
||||
_bool isReady_Hogwart = { true };
|
||||
#ifdef _DEBUG
|
||||
|
||||
#ifdef gimch
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Hogsmeade = false;
|
||||
isReady_Hogwart = false;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
|
||||
@@ -565,7 +565,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_NPC = true;
|
||||
isLoad_NPC = false;
|
||||
isLoad_DataClassroom = false;
|
||||
#endif // gimch
|
||||
#ifdef 진우
|
||||
|
||||
@@ -40,6 +40,7 @@ class CInstancedProp final : public CGameObject
|
||||
private:
|
||||
_bool m_isShake = {};
|
||||
_bool m_isTree = {};
|
||||
_bool m_bEnableRigidbody = {};
|
||||
_uint m_iNumMesh = {};
|
||||
_uint m_iNumInstacne = {};
|
||||
SHADER_PASS_WORLDMODLE_INSTANCE m_eShaderPass = {};
|
||||
|
||||
Reference in New Issue
Block a user