From b6f24dc9051559ded240572aa404f6f3fe3d7dae Mon Sep 17 00:00:00 2001
From: Shon Ferguson <shonferg@users.sourceforge.net>
Date: Mon, 26 Jun 2006 01:16:03 +0000
Subject: [PATCH] Change to some documentation to discuss the need to use the
 Ptr function in Python.

---
 niflib.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/niflib.h b/niflib.h
index 86409a7d..f7f90be7 100644
--- a/niflib.h
+++ b/niflib.h
@@ -541,7 +541,15 @@ NiNode * node = new NiNode;
 
 All NIF objects inherit from \ref NiObject so a good place to start would be understanding the methods of that class.
 
-You can access the member functions of any class through a Ref smart pointer of the right type by using the -> operator.  In Python you can simply use the dot (.) operator.
+You can access the member functions of any class through a Ref smart pointer of the right type by using the -> operator.  In Python you will need to use the Ptr() function as an intermediary between a smart reference and the object that it holds, like so:
+
+\code
+//C++
+niNode->GetChildren;
+
+#Python
+niNode.Ptr().GetChildren()
+\endcode
 
 If you have a Ref of one type, such as a generic NiObjectRef, and you want to know if the object it points to also inherits from the NiNode class, you use the \ref DynamicCast template function.  To cast from a NiObjectRef to a NiNodeRef, you would do the following:
 
-- 
GitLab