Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-22 07:42:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-22 07:42:21 +0300
commit93d562b7b600fb3acbee73e870f6c821674d03ff (patch)
tree25cba8fb32f866827e019b9d5df7a7b09160d1bd /doc
parent12d62831b84cb386bbfe15fd678bf7d16aefa302 (diff)
correct example
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/examples/bpy.types.PropertyGroup.py4
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