Fix #106043: Don't use offset for free nodes #106050
|
@ -1164,13 +1164,19 @@ void DepsgraphRelationBuilder::build_object_pointcache(Object *object)
|
||||||
OperationKey transform_key(
|
OperationKey transform_key(
|
||||||
&object->id, NodeType::TRANSFORM, OperationCode::TRANSFORM_SIMULATION_INIT);
|
&object->id, NodeType::TRANSFORM, OperationCode::TRANSFORM_SIMULATION_INIT);
|
||||||
add_relation(point_cache_key, transform_key, "Point Cache -> Rigid Body");
|
add_relation(point_cache_key, transform_key, "Point Cache -> Rigid Body");
|
||||||
/* Manual changes to effectors need to invalidate simulation. */
|
/* Manual changes to effectors need to invalidate simulation.
|
||||||
OperationKey rigidbody_rebuild_key(
|
*
|
||||||
&scene_->id, NodeType::TRANSFORM, OperationCode::RIGIDBODY_REBUILD);
|
* Don't add this relation for the render pipeline dependency graph as it does not contain
|
||||||
add_relation(rigidbody_rebuild_key,
|
* rigid body simulation. Good thing is that there are no user edits in such dependency
|
||||||
point_cache_key,
|
* graph, so the relation is not really needed in it. */
|
||||||
"Rigid Body Rebuild -> Point Cache Reset",
|
if (!graph_->is_render_pipeline_depsgraph) {
|
||||||
RELATION_FLAG_FLUSH_USER_EDIT_ONLY);
|
OperationKey rigidbody_rebuild_key(
|
||||||
|
&scene_->id, NodeType::TRANSFORM, OperationCode::RIGIDBODY_REBUILD);
|
||||||
|
add_relation(rigidbody_rebuild_key,
|
||||||
|
point_cache_key,
|
||||||
|
"Rigid Body Rebuild -> Point Cache Reset",
|
||||||
|
RELATION_FLAG_FLUSH_USER_EDIT_ONLY);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
flag = FLAG_GEOMETRY;
|
flag = FLAG_GEOMETRY;
|
||||||
|
|
|
@ -49,8 +49,8 @@
|
||||||
#include "UI_interface.h"
|
#include "UI_interface.h"
|
||||||
#include "UI_view2d.h"
|
#include "UI_view2d.h"
|
||||||
|
|
||||||
#include "nla_intern.h" /* own include */
|
#include "nla_intern.h"
|
||||||
#include "nla_private.h" /* FIXME: maybe this shouldn't be included? */
|
#include "nla_private.h"
|
||||||
|
|
||||||
/* -------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------- */
|
||||||
/** \name Public Utilities
|
/** \name Public Utilities
|
||||||
|
|
|
@ -85,7 +85,6 @@ static void deselect_nla_strips(bAnimContext *ac, short test, short sel)
|
||||||
short smode;
|
short smode;
|
||||||
|
|
||||||
/* determine type-based settings */
|
/* determine type-based settings */
|
||||||
/* FIXME: double check whether ANIMFILTER_LIST_VISIBLE is needed! */
|
|
||||||
filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_FCURVESONLY);
|
filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_FCURVESONLY);
|
||||||
|
|
||||||
/* filter data */
|
/* filter data */
|
||||||
|
|
Loading…
Reference in New Issue