Page MenuHome

Mantaflow [Part 9]: Updated rna smoke code
ClosedPublic

Authored by Sebastián Barschkis (sebbas) on Oct 29 2018, 6:13 PM.

Diff Detail

Repository
rB Blender

Event Timeline

Update manta files after merge with master.

Harbormaster completed remote builds in B3299: Diff 14650.

Updated diff with latest changes from fluid-mantaflow branch

Updated diff with latest changes from fluid-mantaflow branch

@Sergey Sharybin (sergey) Smoke and liquid RNA now live in the same file - this manta RNA.
So mostly boilerplate RNA stuff going on here that picks up the changes from the Manta structs in D3860.

Keep in mind comment from @Brecht Van Lommel (brecht) and me in D3855 about not really exposing "manta" to user interface.

source/blender/makesrna/intern/rna_manta.c
122–139 ↗(On Diff #19939)

Such code usually belongs to BKE.

148–160 ↗(On Diff #19939)

Same as above.

397–401 ↗(On Diff #19939)

Should it be something more like "delete all but?". Or "delete all" and then create?

Sebastián Barschkis (sebbas) marked 3 inline comments as done.Dec 11 2019, 4:01 PM

See 5d009982b151 for changes.

source/blender/makesrna/intern/rna_manta.c
397–401 ↗(On Diff #19939)

Mmh, it's not a "delete all", more like a "delete all that have a type we want to create now". I think by & checking the types in the delete new function BKE_manta_delete_particle_system() it should work.

I.e. there are now fewer deletion calls.

Sebastián Barschkis (sebbas) marked an inline comment as done.Dec 11 2019, 4:04 PM

Previous commit wasn't clang-formatted. Fixed that in here df747de1fc6b.

This comment was removed by Juan Gea (juang3d).

Updated diff with latest changes from fluid-mantaflow branch

Ok, something what could be controversial.

Function names are to be changed to rna_def_fluid_FOO, rna_Fluid_FOO and so on. But i'd rather see project in a master and have such rename happen soon after that than to delay project, shift bcon2 and things like that.

That is my optinion on this anyway.

This revision is now accepted and ready to land.Dec 13 2019, 12:11 PM

Updated diff with latest changes from fluid-mantaflow branch