Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_physics.cc
| Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
| /*************************** Evaluation Query API *****************************/ | /*************************** Evaluation Query API *****************************/ | ||||
| static ePhysicsRelationType modifier_to_relation_type(unsigned int modifier_type) | static ePhysicsRelationType modifier_to_relation_type(unsigned int modifier_type) | ||||
| { | { | ||||
| switch (modifier_type) { | switch (modifier_type) { | ||||
| case eModifierType_Collision: | case eModifierType_Collision: | ||||
| return DEG_PHYSICS_COLLISION; | return DEG_PHYSICS_COLLISION; | ||||
| case eModifierType_Smoke: | case eModifierType_Fluid: | ||||
| return DEG_PHYSICS_SMOKE_COLLISION; | return DEG_PHYSICS_SMOKE_COLLISION; | ||||
| case eModifierType_DynamicPaint: | case eModifierType_DynamicPaint: | ||||
| return DEG_PHYSICS_DYNAMIC_BRUSH; | return DEG_PHYSICS_DYNAMIC_BRUSH; | ||||
| } | } | ||||
| BLI_assert(!"Unknown collision modifier type"); | BLI_assert(!"Unknown collision modifier type"); | ||||
| return DEG_PHYSICS_RELATIONS_NUM; | return DEG_PHYSICS_RELATIONS_NUM; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines | |||||