2011-02-23 10:52:22 +00:00
|
|
|
/*
|
2010-04-11 22:12:30 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
2011-11-29 10:54:47 +00:00
|
|
|
* of the License, or (at your option) any later version.
|
2010-04-11 22:12:30 +00:00
|
|
|
*
|
2011-11-29 10:54:47 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
2010-04-11 22:12:30 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2011-11-29 10:54:47 +00:00
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
2010-08-10 21:22:26 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2010-04-11 22:12:30 +00:00
|
|
|
*/
|
|
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup modifiers
|
2011-02-25 13:57:17 +00:00
|
|
|
*/
|
|
|
|
|
|
2020-08-07 09:50:34 +02:00
|
|
|
#pragma once
|
2010-04-11 22:12:30 +00:00
|
|
|
|
2011-02-13 14:16:36 +00:00
|
|
|
/* so modifier types match their defines */
|
|
|
|
|
#include "MOD_modifiertypes.h"
|
|
|
|
|
|
Depsgraph: New dependency graph integration commit
This commit integrates the work done so far on the new dependency graph system,
where goal was to replace legacy depsgraph with the new one, supporting loads of
neat features like:
- More granular dependency relation nature, which solves issues with fake cycles
in the dependencies.
- Move towards all-animatable, by better integration of drivers into the system.
- Lay down some basis for upcoming copy-on-write, overrides and so on.
The new system is living side-by-side with the previous one and disabled by
default, so nothing will become suddenly broken. The way to enable new depsgraph
is to pass `--new-depsgraph` command line argument.
It's a bit early to consider the system production-ready, there are some TODOs
and issues were discovered during the merge period, they'll be addressed ASAP.
But it's important to merge, because it's the only way to attract artists to
really start testing this system.
There are number of assorted documents related on the design of the new system:
* http://wiki.blender.org/index.php/User:Aligorith/GSoC2013_Depsgraph#Design_Documents
* http://wiki.blender.org/index.php/User:Nazg-gul/DependencyGraph
There are also some user-related information online:
* http://code.blender.org/2015/02/blender-dependency-graph-branch-for-users/
* http://code.blender.org/2015/03/more-dependency-graph-tricks/
Kudos to everyone who was involved into the project:
- Joshua "Aligorith" Leung -- design specification, initial code
- Lukas "lukas_t" Toenne -- integrating code into blender, with further fixes
- Sergey "Sergey" "Sharybin" -- some mocking around, trying to wrap up the
project and so
- Bassam "slikdigit" Kurdali -- stressing the new system, reporting all the
issues and recording/writing documentation.
- Everyone else who i forgot to mention here :)
2015-05-12 15:05:57 +05:00
|
|
|
#include "DEG_depsgraph_build.h"
|
|
|
|
|
|
2011-07-11 09:15:20 +00:00
|
|
|
struct MDeformVert;
|
2018-04-25 16:47:52 +02:00
|
|
|
struct Mesh;
|
2010-04-11 22:12:30 +00:00
|
|
|
struct ModifierData;
|
2018-12-07 15:45:53 +01:00
|
|
|
struct ModifierEvalContext;
|
2011-07-11 09:15:20 +00:00
|
|
|
struct Object;
|
2010-04-11 22:12:30 +00:00
|
|
|
|
2018-12-07 15:45:53 +01:00
|
|
|
void MOD_init_texture(struct MappingInfoModifierData *dmd, const struct ModifierEvalContext *ctx);
|
2019-04-17 06:17:24 +02:00
|
|
|
void MOD_get_texture_coords(struct MappingInfoModifierData *dmd,
|
|
|
|
|
const struct ModifierEvalContext *ctx,
|
|
|
|
|
struct Object *ob,
|
|
|
|
|
struct Mesh *mesh,
|
|
|
|
|
float (*cos)[3],
|
|
|
|
|
float (*r_texco)[3]);
|
2018-06-29 19:02:19 +02:00
|
|
|
|
2020-06-12 14:29:59 +10:00
|
|
|
void MOD_previous_vcos_store(struct ModifierData *md, const float (*vertexCos)[3]);
|
2018-06-29 19:02:19 +02:00
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
struct Mesh *MOD_deform_mesh_eval_get(struct Object *ob,
|
|
|
|
|
struct BMEditMesh *em,
|
|
|
|
|
struct Mesh *mesh,
|
2020-06-12 14:29:59 +10:00
|
|
|
const float (*vertexCos)[3],
|
2019-04-17 06:17:24 +02:00
|
|
|
const int num_verts,
|
|
|
|
|
const bool use_normals,
|
|
|
|
|
const bool use_orco);
|
|
|
|
|
|
|
|
|
|
void MOD_get_vgroup(struct Object *ob,
|
|
|
|
|
struct Mesh *mesh,
|
|
|
|
|
const char *name,
|
|
|
|
|
struct MDeformVert **dvert,
|
|
|
|
|
int *defgrp_index);
|
2010-04-25 01:10:03 +00:00
|
|
|
|
2020-04-10 22:00:21 +02:00
|
|
|
void MOD_depsgraph_update_object_bone_relation(struct DepsNodeHandle *node,
|
|
|
|
|
struct Object *object,
|
|
|
|
|
const char *bonename,
|
|
|
|
|
const char *description);
|