correct example
authorCampbell Barton <ideasman42@gmail.com>
Tue, 22 Feb 2011 04:42:21 +0000 (04:42 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 22 Feb 2011 04:42:21 +0000 (04:42 +0000)
doc/python_api/examples/bpy.types.PropertyGroup.py

index 219cd28609cc8cc9bebd8cb06e02a2e701c7c03e..d5260bf94bb874745f37b326aa1d944c8bf98af5 100644 (file)
@@ -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