CollectionProperty, cant register

It seems like I cant register a property group anymore, is there some change to in that part of the api or is it a bug?

import bpy

class Test(bpy.types.PropertyGroup):

    test : bpy.props.FloatProperty()

def register():
    bpy.types.Scene.test = bpy.props.PointerProperty(type=Test)

if __name__ == "__main__":


1 Like

Haven’t tested it but I believe the problem is that the class Test is not registered. (bpy.utils.register_class(Test))

1 Like

oops, that was the problem, thanks.