From 8fc26ed5148ff46e3e23623539ed79e9bce3b09c Mon Sep 17 00:00:00 2001 From: Shon Ferguson <shonferg@users.sourceforge.net> Date: Thu, 13 Oct 2005 05:21:28 +0000 Subject: [PATCH] Added QueryNode() function for SWIG wrappers --- niflib.cpp | 6 +++++- niflib.h | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/niflib.cpp b/niflib.cpp index 8e2f4545..60ba3389 100644 --- a/niflib.cpp +++ b/niflib.cpp @@ -474,4 +474,8 @@ ITriShapeData * QueryTriShapeData( blk_ref block ) { ISkinData * QuerySkinData( blk_ref block ) { return (ISkinData*)block->QueryInterface( SkinData ); -} \ No newline at end of file +} + +INode * QueryNode( blk_ref block ) { + return (INode*)block->QueryInterface( Node ); +} diff --git a/niflib.h b/niflib.h index 6705f4f1..0a7a7a7d 100644 --- a/niflib.h +++ b/niflib.h @@ -54,6 +54,7 @@ class IAttr; class IBlock; class ITriShapeData; class ISkinData; +class INode; class blk_ref; class attr_ref; struct blk_link; @@ -98,6 +99,9 @@ unsigned int BlocksInMemory(); // These are shorthands for using QueryInterface, and required for scripting languages ITriShapeData * QueryTriShapeData( blk_ref block ); ISkinData * QuerySkinData( blk_ref block ); +INode * QueryNode( blk_ref block ); + +//--TypeDefs--// typedef float float3[3]; typedef float matrix[3][3]; -- GitLab