diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-22 07:42:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-22 07:42:21 +0300 |
commit | 93d562b7b600fb3acbee73e870f6c821674d03ff (patch) | |
tree | 25cba8fb32f866827e019b9d5df7a7b09160d1bd /doc | |
parent | 12d62831b84cb386bbfe15fd678bf7d16aefa302 (diff) |
correct example
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/examples/bpy.types.PropertyGroup.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |