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:
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r--source/blender/makesdna/DNA_view3d_types.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h
index 70f06b2eda0..f7fd4a52a5f 100644
--- a/source/blender/makesdna/DNA_view3d_types.h
+++ b/source/blender/makesdna/DNA_view3d_types.h
@@ -49,6 +49,7 @@ struct GPUViewport;
#include "DNA_defs.h"
#include "DNA_listBase.h"
#include "DNA_image_types.h"
+#include "DNA_object_types.h"
#include "DNA_movieclip_types.h"
#include "DNA_gpu_types.h"
@@ -178,8 +179,8 @@ typedef struct View3DOverlay {
/* Other settings */
float wireframe_threshold;
+ int visible_object_types;
- int pad;
} View3DOverlay;
/* 3D ViewPort Struct */
@@ -383,6 +384,17 @@ enum {
V3D_OVERLAY_ONION_SKINS = (1 << 7),
};
+/* View3DOverlay->visible_object_types */
+enum {
+ V3D_OVERLAY_SHOW_EMPTY = (1 << OB_EMPTY),
+ V3D_OVERLAY_SHOW_LAMP = (1 << OB_LAMP),
+ V3D_OVERLAY_SHOW_CAMERA = (1 << OB_CAMERA),
+ V3D_OVERLAY_SHOW_SPEAKER = (1 << OB_SPEAKER),
+ V3D_OVERLAY_SHOW_LIGHTPROBE = (1 << OB_LIGHTPROBE),
+ V3D_OVERLAY_SHOW_ARMATURE = (1 << OB_ARMATURE),
+};
+#define V3D_OVERLAY_VISIBLE_OBJECT_TYPES_MASK (V3D_OVERLAY_SHOW_EMPTY | V3D_OVERLAY_SHOW_LAMP | V3D_OVERLAY_SHOW_CAMERA | V3D_OVERLAY_SHOW_SPEAKER | V3D_OVERLAY_SHOW_LIGHTPROBE | V3D_OVERLAY_SHOW_ARMATURE)
+
/* View3DOverlay->edit_flag */
enum {
V3D_OVERLAY_EDIT_VERT_NORMALS = (1 << 0),