diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-02-14 17:46:01 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-02-14 20:21:46 +0300 |
commit | 1ff3d5bc9ab7b296b1c60038d45ef4c030403162 (patch) | |
tree | ccda1f1d1913aab4268a03699944a11f578b5c4b /source/blender/editors/object/object_relations.c | |
parent | b9762fed932b7f508aec5650fd80679cf635d677 (diff) |
Layer Macros: create the instance as part of the macro
Instead of pre-initializing an instance prior to the macro, we do it as part of the macro itself now.
Diffstat (limited to 'source/blender/editors/object/object_relations.c')
-rw-r--r-- | source/blender/editors/object/object_relations.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index c79c702837a..10439d49787 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -1728,7 +1728,6 @@ static void single_object_users(Main *bmain, Scene *scene, View3D *v3d, const in * button can be functional.*/ void ED_object_single_user(Main *bmain, Scene *scene, Object *ob) { - Object *ob_iter; FOREACH_SCENE_OBJECT(scene, ob_iter) { ob_iter->flag &= ~OB_DONE; @@ -1855,8 +1854,6 @@ static void single_obdata_users(Main *bmain, Scene *scene, const int flag) static void single_object_action_users(Scene *scene, SceneLayer *sl, const int flag) { - Object *ob; - FOREACH_OBJECT_FLAG(scene, sl, flag, ob) if (!ID_IS_LINKED_DATABLOCK(ob)) { DAG_id_tag_update(&ob->id, OB_RECALC_DATA); @@ -1871,7 +1868,6 @@ static void single_mat_users(Main *bmain, Scene *scene, SceneLayer *sl, const in Tex *tex; int a, b; - Object *ob; FOREACH_OBJECT_FLAG(scene, sl, flag, ob) if (!ID_IS_LINKED_DATABLOCK(ob)) { for (a = 1; a <= ob->totcol; a++) { |