Fix T59608: Curves invisible in object mode
authorClément Foucault <foucault.clem@gmail.com>
Fri, 21 Dec 2018 14:43:50 +0000 (15:43 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Fri, 21 Dec 2018 15:14:19 +0000 (16:14 +0100)
source/blender/draw/modes/object_mode.c

index c050490124342c16dabd1bfc3916dd714b123828..4ecd1175c7ce5a742f8980a275d054a9d5ee6803 100644 (file)
@@ -2711,7 +2711,7 @@ static void OBJECT_cache_populate(void *vedata, Object *ob)
                }
                case OB_LATTICE:
                {
-                       if (is_edit_mode) {
+                       if (!is_edit_mode) {
                                if (hide_object_extra) {
                                        break;
                                }
@@ -2727,7 +2727,7 @@ static void OBJECT_cache_populate(void *vedata, Object *ob)
                }
                case OB_CURVE:
                {
-                       if (is_edit_mode) {
+                       if (!is_edit_mode) {
                                if (hide_object_extra) {
                                        break;
                                }
@@ -2742,7 +2742,7 @@ static void OBJECT_cache_populate(void *vedata, Object *ob)
                }
                case OB_MBALL:
                {
-                       if (is_edit_mode) {
+                       if (!is_edit_mode) {
                                DRW_shgroup_mball_handles(sgl, ob, view_layer);
                        }
                        break;