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:
authorJacques Lucke <jacques@blender.org>2020-11-24 19:32:40 +0300
committerJacques Lucke <jacques@blender.org>2020-11-24 19:32:56 +0300
commite922dd7d8a307c54d49bc01649a12610b022192b (patch)
tree21ab3edb04efa7eb95aec6f8df0868acd820ea1c /source/blender/makesdna
parent256a9d983d4862560071393f7ddf44bcbd34ad74 (diff)
Viewport: cannot select object by clicking on its instances
Selecting an object by clicking on its instances only worked, when the object itself is visible. However, it is possible to hide the object and still keep the instances visible. The solution is to give every object the correct `select_id` in the depsgraph object iterator right before rendering. Reviewers: fclem, brecht Differential Revision: https://developer.blender.org/D9640
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_object_types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h
index 345d1287ab1..5a00b6479d5 100644
--- a/source/blender/makesdna/DNA_object_types.h
+++ b/source/blender/makesdna/DNA_object_types.h
@@ -126,7 +126,10 @@ typedef struct Object_Runtime {
/** Only used for drawing the parent/child help-line. */
float parent_display_origin[3];
- /** Selection id of this object; only available in the original object */
+ /**
+ * Selection id of this object. It might differ between an evaluated and its original object,
+ * when the object is being instanced.
+ */
int select_id;
char _pad1[3];