[Bf-blender-cvs] [5a4ff142de1] blender2.8: GP: Hide the origin when enable origins

Antonioya noreply at git.blender.org
Wed Oct 3 20:30:23 CEST 2018


Commit: 5a4ff142de18643e62dbe6dbaf7c7aecb44a7fe7
Author: Antonioya
Date:   Wed Oct 3 20:30:13 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB5a4ff142de18643e62dbe6dbaf7c7aecb44a7fe7

GP: Hide the origin when enable origins

===================================================================

M	source/blender/draw/modes/object_mode.c

===================================================================

diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c
index aa42320afde..5ba576985af 100644
--- a/source/blender/draw/modes/object_mode.c
+++ b/source/blender/draw/modes/object_mode.c
@@ -2374,6 +2374,13 @@ static void DRW_shgroup_object_center(OBJECT_StorageList *stl, Object *ob, ViewL
 		return;
 	}
 
+	/* grease pencil in draw mode hide always */
+	if ((OBACT(view_layer)) &&
+		(OBACT(view_layer)->mode == OB_MODE_GPENCIL_PAINT))
+	{
+		return;
+	}
+
 	const bool is_library = ob->id.us > 1 || ID_IS_LINKED(ob);
 	DRWShadingGroup *shgroup;



More information about the Bf-blender-cvs mailing list