* make sure Material and bNodeTree datablocks show up properly in RNA Viewer.
authorNathan Letwory <nathan@letworyinteractive.com>
Thu, 27 Nov 2008 13:36:28 +0000 (13:36 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Thu, 27 Nov 2008 13:36:28 +0000 (13:36 +0000)
  - documentation was a bit outdated and missing a step, so I updated http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNA#Struct to reflect the current state.

source/blender/makesrna/RNA_access.h
source/blender/makesrna/intern/rna_ID.c

index c4f9eab33d8729d4d55be8a63147ead56f9f90e1..935467edec4c56638be60a0b28940637ac76d04c 100644 (file)
@@ -69,6 +69,9 @@ extern StructRNA RNA_PointerProperty;
 extern StructRNA RNA_CollectionProperty;
 extern StructRNA RNA_Scene;
 extern StructRNA RNA_Lamp;
+extern StructRNA RNA_Material;
+extern StructRNA RNA_bNodeTree;
+extern StructRNA RNA_bNode;
 extern StructRNA RNA_Operator;
 extern StructRNA RNA_WindowManager;
 
index d61a1f6ddb7b68ffd4ffd7b0b0b73ecfc97eb4ee..ae952cc0fd1c98abec529898482014f7e4ec0d76 100644 (file)
@@ -59,6 +59,8 @@ static StructRNA *rna_ID_refine(PointerRNA *ptr)
 
        switch(GS(id->name)) {
                case ID_LA: return &RNA_Lamp;
+               case ID_MA: return &RNA_Material;
+               case ID_NT: return &RNA_bNodeTree;
                case ID_ME: return &RNA_Mesh;
                case ID_OB: return &RNA_Object;
                case ID_SCE: return &RNA_Scene;