Blender Git Commit Log

Git Commits -> Revision 9213902

Revision 9213902 by Alexander Gavrilov
January 9, 2021, 18:15 (GMT)
Collision: allow disabling collision without removing the modifier.

The `object.collision.use` flag was treated as a redundant marker
of the existence of the modifier, going as far as adding/removing
it when the value was changed, which is not actually very useful.
Removing the modifier loses its position in the stack, and requires
a dependency graph rebuild. It feels it may be a legacy flag?

What would be useful however is the ability to toggle collisions
dynamically without removing the modifier. This patch adjusts the
code to only add the modifier when the flag is enabled. Disabling
the setting on the other hand keeps the modifier, which now checks
the flag at the start. The redesigned setting is exposed in the UI.

Collisions can't be disabled by simply using the modifier enable
flags because it still needs to be able to delete the stale data.

Commit Details:

Full Hash: 921390221dd419bb894cc9deb778e89dd1d1c81d
Parent Commit: 8390e02
Lines Changed: +14, -12

4 Modified Paths:

/release/scripts/startup/bl_ui/properties_physics_field.py (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_object_force.c (+1, -4) (Diff)
/source/blender/modifiers/intern/MOD_collision.c (+10, -5) (Diff)
/source/blender/modifiers/intern/MOD_ui_common.c (+1, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021