Remove unused particle system recalc flag

This commit is contained in:
Sergey Sharybin 2018-12-07 18:04:13 +01:00
parent 1ab73fde37
commit 38ef3d6b91
Notes: blender-bot 2024-03-25 12:30:38 +01:00
Referenced by issue #59162, to_mesh(..., True, calc_undeformed=True) calculates deformed anyway since de491ab
2 changed files with 8 additions and 12 deletions

View File

@ -168,7 +168,6 @@ void depsgraph_tag_to_component_opcode(const ID *id,
break;
case ID_RECALC_PSYS_REDO:
case ID_RECALC_PSYS_RESET:
case ID_RECALC_PSYS_TYPE:
case ID_RECALC_PSYS_CHILD:
case ID_RECALC_PSYS_PHYS:
if (id_type == ID_PA) {
@ -592,7 +591,6 @@ const char *DEG_update_tag_as_string(IDRecalcFlag flag)
case ID_RECALC_ANIMATION: return "ANIMATION";
case ID_RECALC_PSYS_REDO: return "PSYS_REDO";
case ID_RECALC_PSYS_RESET: return "PSYS_RESET";
case ID_RECALC_PSYS_TYPE: return "PSYS_TYPE";
case ID_RECALC_PSYS_CHILD: return "PSYS_CHILD";
case ID_RECALC_PSYS_PHYS: return "PSYS_PHYS";
case ID_RECALC_PSYS_ALL: return "PSYS_ALL";

View File

@ -522,27 +522,26 @@ typedef enum IDRecalcFlag {
/* Particle system changed; values are aligned with ID_RECALC_PSYS_xxx. */
ID_RECALC_PSYS_REDO = (1 << 3), /* Only do pathcache etc */
ID_RECALC_PSYS_RESET = (1 << 4), /* Reset everything including pointcache. */
ID_RECALC_PSYS_TYPE = (1 << 5), /* Handle system type change. */
ID_RECALC_PSYS_CHILD = (1 << 6), /* Only child settings changed. */
ID_RECALC_PSYS_PHYS = (1 << 7), /* Physics type changed. */
ID_RECALC_PSYS_CHILD = (1 << 5), /* Only child settings changed. */
ID_RECALC_PSYS_PHYS = (1 << 6), /* Physics type changed. */
/* Update copy on write component without flushing down the road. */
ID_RECALC_COPY_ON_WRITE = (1 << 8),
ID_RECALC_COPY_ON_WRITE = (1 << 7),
/* Tag shading components for update. Only parameters of material changed).
*/
ID_RECALC_SHADING = (1 << 9),
ID_RECALC_SHADING = (1 << 8),
/* Selection of the ID itself or its components (for example, vertices) did
* change, and all the drawing data is to eb updated. */
ID_RECALC_SELECT = (1 << 10),
ID_RECALC_SELECT = (1 << 9),
/* Flags on the base did change, and is to be compied onto all the copies of
* corresponding objects. */
ID_RECALC_BASE_FLAGS = (1 << 11),
ID_RECALC_POINT_CACHE = (1 << 12),
ID_RECALC_BASE_FLAGS = (1 << 10),
ID_RECALC_POINT_CACHE = (1 << 11),
/* Only inform editors about the change. Is used to force update of editors
* when datablock which is not a part of dependency graph did change.
*
* For example, brush texture did change and the preview is to be
* re-rendered. */
ID_RECALC_EDITORS = (1 << 13),
ID_RECALC_EDITORS = (1 << 12),
/* Aggregate flags, use only for checks on runtime.
* Do NOT use those for tagging. */
@ -552,7 +551,6 @@ typedef enum IDRecalcFlag {
/* Identifies that something in particle system did change. */
ID_RECALC_PSYS_ALL = (ID_RECALC_PSYS_REDO |
ID_RECALC_PSYS_RESET |
ID_RECALC_PSYS_TYPE |
ID_RECALC_PSYS_CHILD |
ID_RECALC_PSYS_PHYS),