From 52061a92112eccf7610ed034ee8f0381023e09d7 Mon Sep 17 00:00:00 2001 From: Tazpn <tazpn@users.sourceforge.net> Date: Sat, 30 Sep 2006 16:28:12 +0000 Subject: [PATCH] Update NodeGroup again with all of the required changes. --- include/gen/NodeGroup.h | 4 +--- src/gen/obj_impl.cpp | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/include/gen/NodeGroup.h b/include/gen/NodeGroup.h index ea55a26e..6a35451d 100644 --- a/include/gen/NodeGroup.h +++ b/include/gen/NodeGroup.h @@ -6,8 +6,6 @@ All rights reserved. Please see niflib.h for licence. */ #include "../NIF_IO.h" -// Include structures -#include "../Ref.h" namespace Niflib { // Forward define of referenced blocks @@ -28,7 +26,7 @@ struct NIFLIB_API NodeGroup { /*! * The list of NiNode references. */ - vector<Ref<NiNode > > nodes; + vector<NiNode * > nodes; }; } diff --git a/src/gen/obj_impl.cpp b/src/gen/obj_impl.cpp index de9f2607..7bed8f02 100644 --- a/src/gen/obj_impl.cpp +++ b/src/gen/obj_impl.cpp @@ -1540,8 +1540,6 @@ std::list<NiObjectRef> ABoneLODController::InternalGetRefs() const { refs = NiTimeController::GetRefs(); for (uint i1 = 0; i1 < nodeGroups.size(); i1++) { for (uint i2 = 0; i2 < nodeGroups[i1].nodes.size(); i2++) { - if ( nodeGroups[i1].nodes[i2] != NULL ) - refs.push_back(StaticCast<NiObject>(nodeGroups[i1].nodes[i2])); }; }; return refs; -- GitLab