Skip to content
Snippets Groups Projects
Commit ee3af051 authored by Tazpn's avatar Tazpn
Browse files

1. Fix issues with writing out KF files related to footer

2. Add support for changing the priority on NiSequenceControllers
3. Update code due to CreateBlock changes and removal of CreateNiObject.
parent 012bb303
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ INFO: See Implementation for minimalist comments
#include <color.h>
// Niflib Headers
#include <niflib.h>
#include <obj\NiObject.h>
#include <obj\NiAVObject.h>
#include <obj\NiObjectNET.h>
......@@ -343,4 +344,14 @@ extern TriObject* GetTriObject(Object *o);
extern TSTR GetFileVersion(const char *fileName);
inline Niflib::NiObjectRef CreateBlock(const char *name) {
return Niflib::CreateObject(name);
}
template<typename T>
inline Niflib::Ref<T> CreateNiObject() {
return Niflib::StaticCast<T>(Niflib::CreateObject(T::TypeConst().GetTypeName()));
}
#endif // _NIUTILS_H_
\ No newline at end of file
......@@ -45,4 +45,5 @@
#include "Exporter.h"
#include "NifExport.h"
#include "niutils.h"
#include <shlwapi.h>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment