Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2017-02-07 21:11:17 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-02-07 21:11:17 +0300
commitc973e8d2da5cf3f615256269128a07390f8c06a9 (patch)
treed55bd439b829e20c68f48bf5c13faff5a069e95f /source/blender/makesdna
parent6432c8cc002cb7391e2ac5eae3c300fed28fc422 (diff)
Partial "fix" for objects not being selected
To bring this fix a step further we need to address all the BA_WAS_SEL instances, and make sure they follow the new design. This commit allow you to see the object selected (its center anyways) when you do select all. Note: in the clay engine selection (a) was already working fine.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_scene_types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index 6e56824b176..c0810961529 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -1989,10 +1989,16 @@ extern const char *RE_engine_id_CYCLES;
(base->lay & (v3d ? v3d->lay : scene->lay)) && \
(base->object->restrictflag & OB_RESTRICT_VIEW) == 0)
+#define BASE_SELECTABLE_NEW(base) \
+ ((base->flag & BASE_SELECTABLED) != 0)
+
#define FIRSTBASE scene->base.first
#define LASTBASE scene->base.last
#define BASACT (scene->basact)
#define OBACT (BASACT ? BASACT->object: NULL)
+
+#define FIRSTBASE_NEW sl->object_bases.first
+#define LASTBASE_NEW sl->object_bases.last
#define BASACT_NEW (sl->basact)
#define OBACT_NEW (BASACT_NEW ? BASACT_NEW->object: NULL)