From 93d562b7b600fb3acbee73e870f6c821674d03ff Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 22 Feb 2011 04:42:21 +0000 Subject: correct example --- doc/python_api/examples/bpy.types.PropertyGroup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/python_api/examples/bpy.types.PropertyGroup.py b/doc/python_api/examples/bpy.types.PropertyGroup.py index 219cd28609c..d5260bf94bb 100644 --- a/doc/python_api/examples/bpy.types.PropertyGroup.py +++ b/doc/python_api/examples/bpy.types.PropertyGroup.py @@ -33,8 +33,8 @@ class MyPropertyGroup(bpy.types.PropertyGroup): bpy.utils.register_class(MyPropertyGroup) -bpy.types.Object.my_properties = MyPropertyGroup +bpy.types.Object.my_prop_grp = bpy.props.PointerProperty(type=MyPropertyGroup) # test this worked -bpy.data.objects[0].my_properties.custom_1 = 22.0 +bpy.data.objects[0].my_prop_grp.custom_1 = 22.0 -- cgit v1.2.3