Add Support for Dynamic Paint Modifier #92889

Merged
Sybren A. Stüvel merged 2 commits from JonasDichelle/blender-asset-tracer:dynamicpaint_support into main 2024-09-02 18:19:08 +02:00
Contributor

This PR adds support for the Dynamic Paint modifier point cache.
I added a walker to iterate through all surfaces on a canvas to get each surface's point cache.

This PR adds support for the Dynamic Paint modifier point cache. I added a walker to iterate through all surfaces on a canvas to get each surface's point cache.
Jonas Dichelle added 1 commit 2024-08-28 13:09:12 +02:00
Demeter Dzadik requested review from Sybren A. Stüvel 2024-08-29 02:32:18 +02:00

Can you attach a ZIP/blendfile that I can test with?

Can you attach a ZIP/blendfile that I can test with?
Sybren A. Stüvel requested changes 2024-08-29 12:57:01 +02:00
Dismissed
@ -320,0 +338,4 @@
surfaces = canvas_settings.get_pointer((b"surfaces", b"first"))
for surface in blendfile.iterators.listbase(surfaces):
surface_block_name = block_name + b"%s.canvas_settings.surfaces[%d]"

Does the block name really have %s and %d in it? If that is indeed the case, please add a comment to explain this.

Does the block name really have `%s` and `%d` in it? If that is indeed the case, please add a comment to explain this.
Author
Contributor

That's a mistake, fixed it in the new commit, sorry.

That's a mistake, fixed it in the new commit, sorry.
Jonas Dichelle added 1 commit 2024-08-29 17:21:35 +02:00
Author
Contributor

@dr.sybren here's a simple blend you can test with:

@dr.sybren here's a simple blend you can test with:

Thanks for the file. How do I test? Since there is no ZIP with external files BAT is supposed to report, I think I have to press some buttons to generate those locally? Which ones do I press?

Thanks for the file. How do I test? Since there is no ZIP with external files BAT is supposed to report, I think I have to press some buttons to generate those locally? Which ones do I press?
Author
Contributor

You would just have to bake the dynamic paint cache. But here's a zip that includes the cache

You would just have to bake the dynamic paint cache. But here's a zip that includes the cache

It's not about whether it's a simple action to perform or not, it's about being confident that what I'm testing with is actually what your PR fixes. Thanks for the file, this helps.

It's not about whether it's a simple action to perform or not, it's about being confident that what I'm testing with is actually what your PR fixes. Thanks for the file, this helps.
Author
Contributor

Yes, I'm sorry for not including it earlier.

Yes, I'm sorry for not including it earlier.
Sybren A. Stüvel approved these changes 2024-09-02 18:18:36 +02:00
Sybren A. Stüvel left a comment
Member

Thanks!

Thanks!
Sybren A. Stüvel merged commit 16a092ddf1 into main 2024-09-02 18:19:08 +02:00
Sign in to join this conversation.
No description provided.