[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30640] branches/soc-2010-leifandersen/ release/scripts: 1.

Leif Andersen leif.a.andersen at gmail.com
Thu Jul 22 23:56:29 CEST 2010


Revision: 30640
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30640
Author:   leifandersen
Date:     2010-07-22 23:56:29 +0200 (Thu, 22 Jul 2010)

Log Message:
-----------
1.  Improved UI, although the output is still only in the console...I'm thinking I may have to create a place in context for tests somehow, which could take me a while. (Mostly to figure out how it worked, as I wasn't very successfull about a month when I tried, although I know more now).

2.  Improved the hash operator (as in this version works).

3.  Changed the properties_tests so that it's not currently used.  This file may be removed (otherwise another tests item will be places in the properties window, or it will be integrated into the current properites location).

Modified Paths:
--------------
    branches/soc-2010-leifandersen/release/scripts/op/tests_hash.py
    branches/soc-2010-leifandersen/release/scripts/ui/properties_tests.py
    branches/soc-2010-leifandersen/release/scripts/ui/space_tests.py

Modified: branches/soc-2010-leifandersen/release/scripts/op/tests_hash.py
===================================================================
--- branches/soc-2010-leifandersen/release/scripts/op/tests_hash.py	2010-07-22 21:10:29 UTC (rev 30639)
+++ branches/soc-2010-leifandersen/release/scripts/op/tests_hash.py	2010-07-22 21:56:29 UTC (rev 30640)
@@ -29,7 +29,7 @@
                 for num in ob.rotation_euler:
                     hashcode += hash(round(num, 6))
                 hashcode += hash(ob.type)
-                for point in ob.bounding_box:
+                for point in ob.bound_box:
                     for num in point:
                         hashcode += hash(num)
                 if ob.type == 'MESH':

Modified: branches/soc-2010-leifandersen/release/scripts/ui/properties_tests.py
===================================================================
--- branches/soc-2010-leifandersen/release/scripts/ui/properties_tests.py	2010-07-22 21:10:29 UTC (rev 30639)
+++ branches/soc-2010-leifandersen/release/scripts/ui/properties_tests.py	2010-07-22 21:56:29 UTC (rev 30640)
@@ -27,7 +27,7 @@
         return True
 
 
-class TESTS_PT_hash(RenderButtonsPanel):
+class TESTS_PT_hash(TestsButtonsPanel):
     bl_label = "Hash"
     COMPAT_ENGINES = {'BLENDER_RENDER'}
 
@@ -37,20 +37,6 @@
 
 
 classes = [
-    RENDER_MT_presets,
-    RENDER_MT_ffmpeg_presets,
-    RENDER_PT_render,
-    RENDER_PT_layers,
-    RENDER_PT_dimensions,
-    RENDER_PT_antialiasing,
-    RENDER_PT_motion_blur,
-    RENDER_PT_shading,
-    RENDER_PT_output,
-    RENDER_PT_encoding,
-    RENDER_PT_performance,
-    RENDER_PT_post_processing,
-    RENDER_PT_stamp,
-    RENDER_PT_bake
 ]
 
 

Modified: branches/soc-2010-leifandersen/release/scripts/ui/space_tests.py
===================================================================
--- branches/soc-2010-leifandersen/release/scripts/ui/space_tests.py	2010-07-22 21:10:29 UTC (rev 30639)
+++ branches/soc-2010-leifandersen/release/scripts/ui/space_tests.py	2010-07-22 21:56:29 UTC (rev 30640)
@@ -16,10 +16,38 @@
         layout.separator()
         layout.operator("TESTS_OT_hash", text="File Hash")
 
+class TestsPanel(bpy.types.Panel):
+    bl_space_type = 'VIEW_3D'
+    bl_region_type = 'TOOLS'
+    bl_label = "Testing Tools"
+
+    def draw(self, context):
+        layout = self.layout
+        row = layout.row()
+#        row.operator_context = 'INVOKE_REGION_WIN'
+        row.label(text="Blend hashcode: " + str(-1))
+        row = layout.row()
+        row.operator('TESTS_OT_hash', text = "Get Hash")
+        layout.separator()
+        row = layout.row()
+        row.label(text="Render Tests")
+        row = layout.row()
+        row.operator("TESTS_OT_render", text="Render Test")
+        row = layout.row()
+        row.operator("TESTS_OT_render_all", text="All Render Tests")
+        row = layout.row()
+        row.operator("TESTS_OT_anim", text="Animation Test")
+        row = layout.row()
+        row.operator("RENDER_OT_render", text="Render")
+        row = layout.row()
+        row.label(text="Status: " + "Not Run")
+
 classes = [
     INFO_MT_tests,
+    TestsPanel,
 ]
 
+
 menu_func = (lambda self, context: self.layout.menu("INFO_MT_tests"))
 
 
@@ -27,7 +55,6 @@
     for i in classes:
         bpy.types.register(i)
     bpy.types.INFO_HT_header.append(menu_func)
-#    bpy.types.INFO_MT_help.append(menu_func)
 
 def unregister():
     for i in classes:





More information about the Bf-blender-cvs mailing list