Fix T59174: Missing particles update
This commit is contained in:
parent
e4153946ad
commit
49b5d45118
Notes:
blender-bot
2023-02-14 10:18:56 +01:00
Referenced by issue #59174, Missing particles update
|
@ -142,6 +142,14 @@ void depsgraph_base_flags_tag_to_component_opcode(
|
|||
}
|
||||
}
|
||||
|
||||
eDepsOperation_Code psysTagToOperationCode(IDRecalcFlag tag)
|
||||
{
|
||||
if (tag == ID_RECALC_PSYS_RESET) {
|
||||
return DEG_OPCODE_PARTICLE_SETTINGS_RESET;
|
||||
}
|
||||
return DEG_OPCODE_OPERATION;
|
||||
}
|
||||
|
||||
void depsgraph_tag_to_component_opcode(const ID *id,
|
||||
IDRecalcFlag tag,
|
||||
eDepsNode_Type *component_type,
|
||||
|
@ -177,7 +185,8 @@ void depsgraph_tag_to_component_opcode(const ID *id,
|
|||
* but we can survive for now with single exception here.
|
||||
* Particles needs reconsideration anyway,
|
||||
*/
|
||||
*component_type = DEG_NODE_TYPE_PARTICLE_SYSTEM;
|
||||
*component_type = DEG_NODE_TYPE_PARTICLE_SETTINGS;
|
||||
*operation_code = psysTagToOperationCode(tag);
|
||||
}
|
||||
else {
|
||||
*component_type = DEG_NODE_TYPE_PARTICLE_SYSTEM;
|
||||
|
|
Loading…
Reference in New Issue