[Bf-blender-cvs] [dd423a6] master: Fix T48198: Missing plus sign to open the tool shelf in text editor

Julian Eisel noreply at git.blender.org
Tue Apr 19 21:04:52 CEST 2016


Commit: dd423a6818cc8132ba073dfbeb66cb40d3f09611
Author: Julian Eisel
Date:   Tue Apr 19 21:01:55 2016 +0200
Branches: master
https://developer.blender.org/rBdd423a6818cc8132ba073dfbeb66cb40d3f09611

Fix T48198: Missing plus sign to open the tool shelf in text editor

Did not happen when using screen layout saved in default startup.blend

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

M	source/blender/editors/space_text/space_text.c

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

diff --git a/source/blender/editors/space_text/space_text.c b/source/blender/editors/space_text/space_text.c
index 87270ba..0a6a9a8 100644
--- a/source/blender/editors/space_text/space_text.c
+++ b/source/blender/editors/space_text/space_text.c
@@ -79,7 +79,15 @@ static SpaceLink *text_new(const bContext *UNUSED(C))
 	BLI_addtail(&stext->regionbase, ar);
 	ar->regiontype = RGN_TYPE_HEADER;
 	ar->alignment = RGN_ALIGN_BOTTOM;
-	
+
+	/* properties region */
+	ar = MEM_callocN(sizeof(ARegion), "properties region for text");
+
+	BLI_addtail(&stext->regionbase, ar);
+	ar->regiontype = RGN_TYPE_UI;
+	ar->alignment = RGN_ALIGN_LEFT;
+	ar->flag = RGN_FLAG_HIDDEN;
+
 	/* main region */
 	ar = MEM_callocN(sizeof(ARegion), "main region for text");




More information about the Bf-blender-cvs mailing list