2.5
authorTon Roosendaal <ton@blender.org>
Thu, 21 May 2009 17:13:50 +0000 (17:13 +0000)
committerTon Roosendaal <ton@blender.org>
Thu, 21 May 2009 17:13:50 +0000 (17:13 +0000)
Bugfix: In full-area screen mode, you cannot split windows again, the
full-area code is too primitive for that. Just disabled now.
(reported by Venom's Lab!)

source/blender/editors/screen/screen_ops.c

index c991a63e762c4786c91deb67b52079e6c009e99b..aea27930c168396245f47d3552830d455a73fcaa 100644 (file)
@@ -1023,6 +1023,10 @@ static int area_split_invoke(bContext *C, wmOperator *op, wmEvent *event)
                        return OPERATOR_PASS_THROUGH;
                }
                
+               /* no full window splitting allowed */
+               if(CTX_wm_area(C)->full)
+                       return OPERATOR_PASS_THROUGH;
+               
                /* verify *sad itself */
                if(sad==NULL || sad->sa1==NULL || sad->az==NULL)
                        return OPERATOR_PASS_THROUGH;