Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for each Object loaded with so many properties #72

Open
yankscally opened this issue Nov 12, 2024 · 0 comments
Open

fix for each Object loaded with so many properties #72

yankscally opened this issue Nov 12, 2024 · 0 comments

Comments

@yankscally
Copy link
Collaborator

yankscally commented Nov 12, 2024

With collisions layers etc. There are at least 64 properties per object, this is terrible for optimisation.

The solution:
make a "subscribable" property that can be loaded at runtime on each object.
according to Valy I can do property loading outside of the init.py, which means dynamic properties are novel to support

so essentially - something like this:
bpy.types.Object.body_properties = bpy.props.PointerProperty(type=bless.OMIPhysicsBody)
can be called when the panel is changed in any way. the problem is that the panel can't load them in draw(), so I will have to use my imagination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant