[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27992] trunk/blender/release/scripts/ui/ space_sequencer.py: Commented out some unimplemented operators, avoids gray text in the UI

Elia Sarti vekoon at gmail.com
Sun Apr 4 20:56:03 CEST 2010


Revision: 27992
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27992
Author:   vekoon
Date:     2010-04-04 20:56:03 +0200 (Sun, 04 Apr 2010)

Log Message:
-----------
Commented out some unimplemented operators, avoids gray text in the UI
Also I noticed there's a check on strip.type == 'EFFECT', which can never be true because strip.type actually contains the type of effect, e.g. "GLOW", "ADD" etc. Not a big problem currently because it's not used.

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_sequencer.py

Modified: trunk/blender/release/scripts/ui/space_sequencer.py
===================================================================
--- trunk/blender/release/scripts/ui/space_sequencer.py	2010-04-04 17:42:40 UTC (rev 27991)
+++ trunk/blender/release/scripts/ui/space_sequencer.py	2010-04-04 18:56:03 UTC (rev 27992)
@@ -245,21 +245,24 @@
 
         if strip:
             stype = strip.type
-
-            if	stype == 'EFFECT':
-                layout.separator()
-                layout.operator("sequencer.effect_change")
-                layout.operator("sequencer.effect_reassign_inputs")
+            
+            # XXX note strip.type is never equal to 'EFFECT', look at seq_type_items within rna_sequencer.c
+            if stype == 'EFFECT':
+                pass
+                # layout.separator()
+                # layout.operator("sequencer.effect_change")
+                # layout.operator("sequencer.effect_reassign_inputs")
             elif stype == 'IMAGE':
                 layout.separator()
                 # layout.operator("sequencer.image_change")
                 layout.operator("sequencer.rendersize")
             elif stype == 'SCENE':
-                layout.separator()
-                layout.operator("sequencer.scene_change", text="Change Scene")
+                pass
+                # layout.separator()
+                # layout.operator("sequencer.scene_change", text="Change Scene")
             elif stype == 'MOVIE':
                 layout.separator()
-                layout.operator("sequencer.movie_change")
+                # layout.operator("sequencer.movie_change")
                 layout.operator("sequencer.rendersize")
 
         layout.separator()





More information about the Bf-blender-cvs mailing list