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:
authorCampbell Barton <ideasman42@gmail.com>2018-07-31 13:11:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-31 13:11:55 +0300
commitf06884b18ab5b619975689a0670f8f0f14f9c318 (patch)
treee0c0f557659f6b900019acd5c1f11e127619e539 /source/blender/editors/space_view3d
parentb2193e020bc0c1a9ef9969440ece453e49f8012c (diff)
Cleanup: style, duplicate includes
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/view3d_gizmo_ruler.c1
-rw-r--r--source/blender/editors/space_view3d/view3d_select.c17
2 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c
index d5ef7cdf441..fb335d5f922 100644
--- a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c
+++ b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c
@@ -37,7 +37,6 @@
#include "BKE_object.h"
#include "BKE_unit.h"
#include "BKE_material.h"
-#include "BKE_main.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c
index afff5eb7f66..2f65ad1fde4 100644
--- a/source/blender/editors/space_view3d/view3d_select.c
+++ b/source/blender/editors/space_view3d/view3d_select.c
@@ -1683,22 +1683,23 @@ static bool ed_object_select_pick(
The grease pencil modes are not real modes, but a hack to make the interface
consistent, so need some tricks to keep UI synchronized */
// XXX: This stuff neeeds reviewing (Aligorith)
-#if 0
- if (((oldbasact) && oldbasact->object->type == OB_GPENCIL) || (basact->object->type == OB_GPENCIL)) {
+ if (false &&
+ (((oldbasact) && oldbasact->object->type == OB_GPENCIL) ||
+ (basact->object->type == OB_GPENCIL)))
+ {
/* set cursor */
- if (ELEM(basact->object->mode == OB_MODE_GPENCIL_PAINT,
- OB_MODE_GPENCIL_SCULPT,
- OB_MODE_GPENCIL_WEIGHT)) {
+ if (ELEM(basact->object->mode,
+ OB_MODE_GPENCIL_PAINT,
+ OB_MODE_GPENCIL_SCULPT,
+ OB_MODE_GPENCIL_WEIGHT))
+ {
ED_gpencil_toggle_brush_cursor(C, true, NULL);
}
else {
/* TODO: maybe is better use restore */
ED_gpencil_toggle_brush_cursor(C, false, NULL);
}
- /* set workspace mode */
- BKE_workspace_object_mode_set(CTX_wm_workspace(C), scene, basact->object->mode);
}
-#endif
}
DEG_id_tag_update(&scene->id, DEG_TAG_SELECT_UPDATE);