diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-01-31 17:06:51 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-01-31 17:06:51 +0300 |
commit | 71d7c5799795ae03e8aa7fbf0e949b2936307ab2 (patch) | |
tree | f031a3aa3040b3fa3f9677ec2066ea885f905b78 | |
parent | 481785f1536a944b64febe7cfc1dbe5bb437eb40 (diff) | |
parent | 835f9742e6c5635fb0bcc47662c99fccb1598734 (diff) |
Merge branch 'render-layers' into clay-engine
-rw-r--r-- | source/blender/blenkernel/BKE_layer.h | 13 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_object_types.h | 5 |
2 files changed, 17 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_layer.h b/source/blender/blenkernel/BKE_layer.h index 48e1f9e24c6..6373593f199 100644 --- a/source/blender/blenkernel/BKE_layer.h +++ b/source/blender/blenkernel/BKE_layer.h @@ -178,6 +178,19 @@ void BKE_visible_bases_Iterator_end(Iterator *iter); ITER_END \ } +/* temporary hacky solution waiting for final depsgraph evaluation */ +#define DEG_OBJECT_ITER(sl_, ob_) \ +{ \ + /* flush all the data to objects*/ \ + ObjectBase *base_; \ + for (base_ = sl->object_bases.first; base_; base_ = base_->next) { \ + ob_ = base_->object; \ + ob_->base_flag = base_->flag; + +#define DEG_OBJECT_ITER_END \ + } \ +} + #ifdef __cplusplus } #endif diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h index d24c7faa9f5..60aaa4ace20 100644 --- a/source/blender/makesdna/DNA_object_types.h +++ b/source/blender/makesdna/DNA_object_types.h @@ -223,7 +223,10 @@ typedef struct Object { float jump_speed; float fall_speed; unsigned char max_jumps; - char pad2[3]; + char pad2; + + /* Depsgraph */ + short base_flag; /* used by depsgraph, flushed from base */ /** Collision mask settings */ unsigned short col_group, col_mask; |