diff options
Diffstat (limited to 'doc/python_api/examples/bpy.props.2.py')
-rw-r--r-- | doc/python_api/examples/bpy.props.2.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/python_api/examples/bpy.props.2.py b/doc/python_api/examples/bpy.props.2.py index aeb3bab65b4..9cfaefab4a1 100644 --- a/doc/python_api/examples/bpy.props.2.py +++ b/doc/python_api/examples/bpy.props.2.py @@ -10,15 +10,14 @@ import bpy class MaterialSettings(bpy.types.PropertyGroup): - my_int = bpy.props.IntProperty() - my_float = bpy.props.FloatProperty() - my_string = bpy.props.StringProperty() + my_int: bpy.props.IntProperty() + my_float: bpy.props.FloatProperty() + my_string: bpy.props.StringProperty() bpy.utils.register_class(MaterialSettings) -bpy.types.Material.my_settings = \ - bpy.props.PointerProperty(type=MaterialSettings) +bpy.types.Material.my_settings = bpy.props.PointerProperty(type=MaterialSettings) # test the new settings work material = bpy.data.materials[0] |