3838#include " StdAfx.h"
3939#include " W3DView.h"
4040#include " DataTreeView.h"
41+ #include " refcount.h"
4142#include " rendobj.h"
4243#include " ViewerAssetMgr.h"
4344#include " Globals.h"
@@ -521,7 +522,7 @@ CDataTreeView::LoadAnimationsIntoTree (void)
521522 }
522523
523524 // Release our hold on this animation...
524- MEMBER_RELEASE (pHierarchyAnim);
525+ REF_PTR_RELEASE (pHierarchyAnim);
525526 }
526527 }
527528
@@ -583,7 +584,7 @@ CDataTreeView::LoadAnimationsIntoTree (HTREEITEM hItem)
583584 }
584585
585586 // Release our hold on the animation object
586- MEMBER_RELEASE (pHierarchyAnim);
587+ REF_PTR_RELEASE (pHierarchyAnim);
587588 }
588589 }
589590
@@ -1009,7 +1010,7 @@ CDataTreeView::Display_Asset (HTREEITEM htree_item)
10091010 RenderObjClass *prender_obj = Create_Render_Obj_To_Display (hParentItem);
10101011 pdoc->PlayAnimation (prender_obj,
10111012 asset_info->Get_Name ());
1012- MEMBER_RELEASE (prender_obj);
1013+ REF_PTR_RELEASE (prender_obj);
10131014 }
10141015 }
10151016 break ;
@@ -1019,7 +1020,7 @@ CDataTreeView::Display_Asset (HTREEITEM htree_item)
10191020 // Ask the document to display this object
10201021 ParticleEmitterClass *emitter = (ParticleEmitterClass *)Create_Render_Obj_To_Display (htree_item);
10211022 pdoc->Display_Emitter (emitter);
1022- MEMBER_RELEASE (emitter);
1023+ REF_PTR_RELEASE (emitter);
10231024 }
10241025 break ;
10251026
@@ -1035,7 +1036,7 @@ CDataTreeView::Display_Asset (HTREEITEM htree_item)
10351036 // Ask the document to display this object
10361037 RenderObjClass *prender_obj = Create_Render_Obj_To_Display (htree_item);
10371038 pdoc->DisplayObject (prender_obj);
1038- MEMBER_RELEASE (prender_obj);
1039+ REF_PTR_RELEASE (prender_obj);
10391040 }
10401041 break ;
10411042 }
@@ -1478,7 +1479,7 @@ Set_Highest_LOD (RenderObjClass *render_obj)
14781479 if (sub_obj != NULL ) {
14791480 Set_Highest_LOD (sub_obj);
14801481 }
1481- MEMBER_RELEASE (sub_obj);
1482+ REF_PTR_RELEASE (sub_obj);
14821483 }
14831484
14841485 //
0 commit comments