Page MenuHome

Fix T80131: Rigid Body World Field Weights dont have a proper RNA path (e.g. cannot be animated)
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Aug 26 2020, 11:44 AM.

Details

Summary

An RNA path is mandatory for RNA_path_from_ID_to_property and for EffectorWeights, this has to provided using RNA_def_struct_path_func (since this struct is shared across ParticleSettings, Modifiers and Rigid Body World). Without this, the animation system cannot work and e.g. keyframes cannot be inserted.

The case for Rigid Body World in rna_EffectorWeight_path was missing, now added.

Rigid Body World Field Weights are capable of being animated, tested with file from T80131 (e.g. gravity, wind).

Diff Detail

Repository
rB Blender

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Aug 26 2020, 11:44 AM
Philipp Oeser (lichtwerk) created this revision.
source/blender/makesrna/intern/rna_object_force.c
784–785

These two can be const.

address review comment (const)

Philipp Oeser (lichtwerk) marked an inline comment as done.Sep 10 2020, 11:49 AM

@Sybren A. Stüvel (sybren): think this OK to go in now?

This revision is now accepted and ready to land.Sep 17 2020, 2:53 PM