[Bf-blender-cvs] [d0609d0] master: Outliner: Do not show RMB menu for "ID Base" entries

Joshua Leung noreply at git.blender.org
Sun Feb 15 13:23:07 CET 2015


Commit: d0609d09e465529bacb9e2d1086b292bf845a013
Author: Joshua Leung
Date:   Mon Feb 16 00:19:47 2015 +1300
Branches: master
https://developer.blender.org/rBd0609d09e465529bacb9e2d1086b292bf845a013

Outliner: Do not show RMB menu for "ID Base" entries

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

M	source/blender/editors/space_outliner/outliner_tools.c

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

diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index b493e2e..42fefd1 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -1597,6 +1597,9 @@ static int do_outliner_operation_event(bContext *C, Scene *scene, ARegion *ar, S
 				else if (ELEM(datalevel, TSE_R_LAYER_BASE, TSE_R_LAYER, TSE_R_PASS)) {
 					/*WM_operator_name_call(C, "OUTLINER_OT_renderdata_operation", WM_OP_INVOKE_REGION_WIN, NULL)*/
 				}
+				else if (datalevel == TSE_ID_BASE) {
+					/* do nothing... there are no ops needed here yet */
+				}
 				else if (datalevel == TSE_CONSTRAINT) {
 					WM_operator_name_call(C, "OUTLINER_OT_constraint_operation", WM_OP_INVOKE_REGION_WIN, NULL);
 				}




More information about the Bf-blender-cvs mailing list