diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2018-10-24 19:38:50 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2018-10-24 22:14:32 +0300 |
commit | 97ec802da7a6bd99f79875fce459659f6218862e (patch) | |
tree | 7687da897c433805432bf28efa6799deb731b998 /source/blender/depsgraph/intern/depsgraph_build.cc | |
parent | e66084268ccc08bfde4b384211f5a248a805036d (diff) |
Depsgraph: fixes for the eval_flags API behavior.
- Use the original ID pointer for lookup in DEG_get_eval_flags_for_id.
- When the flags change after a DEG rebuild, tag the object for update.
- Instead of mixing int and short in different places, use uint32_t.
This fixes text not updating when a Follow Curve reference is set.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_build.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_build.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_build.cc b/source/blender/depsgraph/intern/depsgraph_build.cc index e38cebbf525..eb125229c6a 100644 --- a/source/blender/depsgraph/intern/depsgraph_build.cc +++ b/source/blender/depsgraph/intern/depsgraph_build.cc @@ -178,7 +178,7 @@ void DEG_add_bone_relation(DepsNodeHandle *handle, description); } -void DEG_add_special_eval_flag(struct DepsNodeHandle *handle, ID *id, short flag) +void DEG_add_special_eval_flag(struct DepsNodeHandle *handle, ID *id, uint32_t flag) { DEG::DepsNodeHandle *deg_handle = get_handle(handle); deg_handle->builder->add_special_eval_flag(id, flag); |