[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38781] branches/soc-2011-salad: Merging r38705 through r38779 from trunk into sox-2011-salad

Sergey Sharybin g.ulairi at gmail.com
Thu Jul 28 13:02:37 CEST 2011


Revision: 38781
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38781
Author:   nazgul
Date:     2011-07-28 11:02:37 +0000 (Thu, 28 Jul 2011)
Log Message:
-----------
Merging r38705 through r38779 from trunk into sox-2011-salad

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38705
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38779

Modified Paths:
--------------
    branches/soc-2011-salad/doc/python_api/examples/mathutils.Vector.py
    branches/soc-2011-salad/doc/python_api/sphinx_doc_gen.sh
    branches/soc-2011-salad/release/scripts/modules/bpy_extras/io_utils.py
    branches/soc-2011-salad/release/scripts/startup/bl_operators/object.py
    branches/soc-2011-salad/release/scripts/startup/bl_operators/screen_play_rendered_anim.py
    branches/soc-2011-salad/release/scripts/startup/bl_ui/space_text.py
    branches/soc-2011-salad/release/scripts/startup/bl_ui/space_view3d.py
    branches/soc-2011-salad/source/blender/blenkernel/BKE_blender.h
    branches/soc-2011-salad/source/blender/blenkernel/intern/cdderivedmesh.c
    branches/soc-2011-salad/source/blender/blenkernel/intern/customdata.c
    branches/soc-2011-salad/source/blender/blenkernel/intern/material.c
    branches/soc-2011-salad/source/blender/blenkernel/intern/seqeffects.c
    branches/soc-2011-salad/source/blender/blenkernel/intern/text.c
    branches/soc-2011-salad/source/blender/collada/MaterialExporter.cpp
    branches/soc-2011-salad/source/blender/collada/MaterialExporter.h
    branches/soc-2011-salad/source/blender/editors/armature/editarmature.c
    branches/soc-2011-salad/source/blender/editors/interface/interface_handlers.c
    branches/soc-2011-salad/source/blender/editors/interface/interface_layout.c
    branches/soc-2011-salad/source/blender/editors/interface/interface_panel.c
    branches/soc-2011-salad/source/blender/editors/interface/interface_regions.c
    branches/soc-2011-salad/source/blender/editors/interface/interface_templates.c
    branches/soc-2011-salad/source/blender/editors/object/object_add.c
    branches/soc-2011-salad/source/blender/editors/space_node/node_draw.c
    branches/soc-2011-salad/source/blender/editors/space_node/node_edit.c
    branches/soc-2011-salad/source/blender/editors/space_sequencer/sequencer_add.c
    branches/soc-2011-salad/source/blender/editors/space_text/text_ops.c
    branches/soc-2011-salad/source/blender/editors/space_view3d/view3d_edit.c
    branches/soc-2011-salad/source/blender/editors/transform/transform.h
    branches/soc-2011-salad/source/blender/editors/transform/transform_snap.c
    branches/soc-2011-salad/source/blender/editors/util/undo.c
    branches/soc-2011-salad/source/blender/editors/uvedit/uvedit_ops.c
    branches/soc-2011-salad/source/blender/gpu/intern/gpu_material.c
    branches/soc-2011-salad/source/blender/makesdna/DNA_scene_types.h
    branches/soc-2011-salad/source/blender/makesrna/intern/rna_access.c
    branches/soc-2011-salad/source/blender/makesrna/intern/rna_object_api.c
    branches/soc-2011-salad/source/blender/makesrna/intern/rna_scene.c
    branches/soc-2011-salad/source/blender/makesrna/intern/rna_wm.c
    branches/soc-2011-salad/source/blender/windowmanager/WM_api.h
    branches/soc-2011-salad/source/blender/windowmanager/intern/wm.c
    branches/soc-2011-salad/source/blenderplayer/bad_level_call_stubs/stubs.c

Added Paths:
-----------
    branches/soc-2011-salad/release/scripts/templates/ui_menu.py
    branches/soc-2011-salad/release/scripts/templates/ui_menu_simple.py
    branches/soc-2011-salad/release/scripts/templates/ui_panel_simple.py

Removed Paths:
-------------
    branches/soc-2011-salad/release/scripts/templates/panel_simple.py

Property Changed:
----------------
    branches/soc-2011-salad/
    branches/soc-2011-salad/intern/audaspace/OpenAL/


Property changes on: branches/soc-2011-salad
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/soc-2010-jwilkins:28499-37009
/branches/soc-2010-nicolasbishop:28448-30783,30792-30793,30797-30798,30815
/branches/soc-2011-carrot:36854,37548,37564,37602,37622,37848,38043,38064,38226,38231,38282,38620,38661-38662
/branches/soc-2011-cucumber:36829-36994
/branches/soc-2011-onion:36833-38309
/branches/soc-2011-pepper:36830-38208
/branches/soc-2011-tomato:36831-38706
/trunk/blender:36834-38704
   + /branches/soc-2010-jwilkins:28499-37009
/branches/soc-2010-nicolasbishop:28448-30783,30792-30793,30797-30798,30815
/branches/soc-2011-carrot:36854,37548,37564,37602,37622,37848,38043,38064,38226,38231,38282,38620,38661-38662
/branches/soc-2011-cucumber:36829-36994
/branches/soc-2011-onion:36833-38309
/branches/soc-2011-pepper:36830-38208
/branches/soc-2011-tomato:36831-38706
/trunk/blender:36834-38779

Modified: branches/soc-2011-salad/doc/python_api/examples/mathutils.Vector.py
===================================================================
--- branches/soc-2011-salad/doc/python_api/examples/mathutils.Vector.py	2011-07-28 11:01:38 UTC (rev 38780)
+++ branches/soc-2011-salad/doc/python_api/examples/mathutils.Vector.py	2011-07-28 11:02:37 UTC (rev 38781)
@@ -1,15 +1,15 @@
 import mathutils
 
 # zero length vector
-vec = mathutils.Vector((0, 0, 1))
+vec = mathutils.Vector((0.0, 0.0, 1.0))
 
 # unit length vector
 vec_a = vec.copy().normalize()
 
-vec_b = mathutils.Vector((0, 1, 2))
+vec_b = mathutils.Vector((0.0, 1.0, 2.0))
 
-vec2d = mathutils.Vector((1, 2))
-vec3d = mathutils.Vector((1, 0, 0))
+vec2d = mathutils.Vector((1.0, 2.0))
+vec3d = mathutils.Vector((1.0, 0.0, 0.0))
 vec4d = vec_a.to_4d()
 
 # other mathutuls types
@@ -34,9 +34,9 @@
 vec_a - vec_b
 vec_a * vec_b
 vec_a * 10.0
-vec_a * matrix
+matrix * vec_a
+quat * vec_a
 vec_a * vec_b
-vec_a * quat
 -vec_a
 
 
@@ -44,6 +44,7 @@
 x = vec_a[0]
 len(vec)
 vec_a[:] = vec_b
+vec_a[:] = 1.0, 2.0, 3.0
 vec2d[:] = vec3d[:2]
 
 

Modified: branches/soc-2011-salad/doc/python_api/sphinx_doc_gen.sh
===================================================================
--- branches/soc-2011-salad/doc/python_api/sphinx_doc_gen.sh	2011-07-28 11:01:38 UTC (rev 38780)
+++ branches/soc-2011-salad/doc/python_api/sphinx_doc_gen.sh	2011-07-28 11:02:37 UTC (rev 38781)
@@ -38,9 +38,12 @@
 ssh $SSH_USER at emo.blender.org 'rm -rf '$SSH_UPLOAD_FULL'/*'
 rsync --progress -avze "ssh -p 22" $SPHINXBASE/sphinx-out/* $SSH_HOST:$SSH_UPLOAD_FULL/
 
-# symlink the dir to a static URL
-ssh $SSH_USER at emo.blender.org 'rm '$SSH_UPLOAD'/250PythonDoc && ln -s '$SSH_UPLOAD_FULL' '$SSH_UPLOAD'/250PythonDoc'
+## symlink the dir to a static URL
+#ssh $SSH_USER at emo.blender.org 'rm '$SSH_UPLOAD'/250PythonDoc && ln -s '$SSH_UPLOAD_FULL' '$SSH_UPLOAD'/250PythonDoc'
 
+# better redirect
+ssh $SSH_USER at emo.blender.org 'echo "<html><head><title>Redirecting...</title><meta http-equiv=\"REFRESH\" content=\"0;url=../blender_python_api_'$BLENDER_VERSION'/\"></head><body>Redirecting...</body></html>" > '$SSH_UPLOAD'/250PythonDoc/index.html'
+
 # pdf
 sphinx-build -b latex $SPHINXBASE/sphinx-in $SPHINXBASE/sphinx-out
 cd $SPHINXBASE/sphinx-out


Property changes on: branches/soc-2011-salad/intern/audaspace/OpenAL
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/soc-2010-jwilkins/intern/audaspace/OpenAL:28499-37009
/branches/soc-2010-nicolasbishop/intern/audaspace/OpenAL:28448-30783,30792-30793,30797-30798,30815
/branches/soc-2011-carrot/intern/audaspace/OpenAL:36854,37548,37564,37602,37622,37848,38043,38064,38226,38231,38282,38620,38661-38662
/branches/soc-2011-cucumber/intern/audaspace/OpenAL:36829-36994
/branches/soc-2011-onion/intern/audaspace/OpenAL:36833-38309
/branches/soc-2011-pepper/intern/audaspace/OpenAL:36830-38208,38630
/branches/soc-2011-tomato/intern/audaspace/OpenAL:36831-38706
/trunk/blender/intern/audaspace/OpenAL:36834-38704
   + /branches/soc-2010-jwilkins/intern/audaspace/OpenAL:28499-37009
/branches/soc-2010-nicolasbishop/intern/audaspace/OpenAL:28448-30783,30792-30793,30797-30798,30815
/branches/soc-2011-carrot/intern/audaspace/OpenAL:36854,37548,37564,37602,37622,37848,38043,38064,38226,38231,38282,38620,38661-38662
/branches/soc-2011-cucumber/intern/audaspace/OpenAL:36829-36994
/branches/soc-2011-onion/intern/audaspace/OpenAL:36833-38309
/branches/soc-2011-pepper/intern/audaspace/OpenAL:36830-38208,38630
/branches/soc-2011-tomato/intern/audaspace/OpenAL:36831-38706
/trunk/blender/intern/audaspace/OpenAL:36834-38779

Modified: branches/soc-2011-salad/release/scripts/modules/bpy_extras/io_utils.py
===================================================================
--- branches/soc-2011-salad/release/scripts/modules/bpy_extras/io_utils.py	2011-07-28 11:01:38 UTC (rev 38780)
+++ branches/soc-2011-salad/release/scripts/modules/bpy_extras/io_utils.py	2011-07-28 11:02:37 UTC (rev 38781)
@@ -203,7 +203,7 @@
 
 # return a tuple (free, object list), free is True if memory should be freed later with free_derived_objects()
 def create_derived_objects(scene, ob):
-    if ob.parent and ob.parent.dupli_type != 'NONE':
+    if ob.parent and ob.parent.dupli_type in {'VERTS', 'FACES'}:
         return False, None
 
     if ob.dupli_type != 'NONE':

Modified: branches/soc-2011-salad/release/scripts/startup/bl_operators/object.py
===================================================================
--- branches/soc-2011-salad/release/scripts/startup/bl_operators/object.py	2011-07-28 11:01:38 UTC (rev 38780)
+++ branches/soc-2011-salad/release/scripts/startup/bl_operators/object.py	2011-07-28 11:02:37 UTC (rev 38781)
@@ -16,7 +16,7 @@
 #
 # ##### END GPL LICENSE BLOCK #####
 
-# <pep8 compliant>
+# <pep8-80 compliant>
 
 import bpy
 from bpy.props import StringProperty, BoolProperty, EnumProperty, IntProperty
@@ -54,22 +54,36 @@
         else:
             pattern_match = (lambda a, b:
                                  fnmatch.fnmatchcase(a.upper(), b.upper()))
-
+        is_ebone = False
         obj = context.object
         if obj and obj.mode == 'POSE':
             items = obj.data.bones
+            if not self.extend:
+                bpy.ops.pose.select_all(action='DESELECT')
         elif obj and obj.type == 'ARMATURE' and obj.mode == 'EDIT':
             items = obj.data.edit_bones
+            if not self.extend:
+                bpy.ops.armature.select_all(action='DESELECT')
+            is_ebone = True
         else:
             items = context.visible_objects
+            if not self.extend:
+                bpy.ops.object.select_all(action='DESELECT')
 
         # Can be pose bones or objects
         for item in items:
             if pattern_match(item.name, self.pattern):
                 item.select = True
-            elif not self.extend:
-                item.select = False
 
+                # hrmf, perhaps there should be a utility function for this.
+                if is_ebone:
+                    item.select_head = True
+                    item.select_tail = True
+                    if item.use_connect:
+                        item_parent = item.parent
+                        if item_parent is not None:
+                            item_parent.select_tail = True
+
         return {'FINISHED'}
 
     def invoke(self, context, event):
@@ -107,7 +121,8 @@
 
 
 class SelectHierarchy(bpy.types.Operator):
-    '''Select object relative to the active objects position in the hierarchy'''
+    '''Select object relative to the active objects position''' \
+    '''in the hierarchy'''
     bl_idname = "object.select_hierarchy"
     bl_label = "Select Hierarchy"
     bl_options = {'REGISTER', 'UNDO'}
@@ -332,53 +347,90 @@
             ob_add_shape(ob_other, orig_key_name)
 
             # editing the final coords, only list that stores wrapped coords
-            target_shape_coords = [v.co for v in ob_other.active_shape_key.data]
+            target_shape_coords = [v.co for v in
+                                   ob_other.active_shape_key.data]
 
             median_coords = [[] for i in range(len(me.vertices))]
 
             # Method 1, edge
             if mode == 'OFFSET':
                 for i, vert_cos in enumerate(median_coords):
-                    vert_cos.append(target_coords[i] + (orig_shape_coords[i] - orig_coords[i]))
+                    vert_cos.append(target_coords[i] +
+                                    (orig_shape_coords[i] - orig_coords[i]))
 
             elif mode == 'RELATIVE_FACE':
                 for face in me.faces:
                     i1, i2, i3, i4 = face.vertices_raw
                     if i4 != 0:
                         pt = barycentric_transform(orig_shape_coords[i1],
-                            orig_coords[i4], orig_coords[i1], orig_coords[i2],
-                            target_coords[i4], target_coords[i1], target_coords[i2])
+                                                   orig_coords[i4],
+                                                   orig_coords[i1],
+                                                   orig_coords[i2],
+                                                   target_coords[i4],
+                                                   target_coords[i1],
+                                                   target_coords[i2],
+                                                   )
                         median_coords[i1].append(pt)
 
                         pt = barycentric_transform(orig_shape_coords[i2],
-                            orig_coords[i1], orig_coords[i2], orig_coords[i3],
-                            target_coords[i1], target_coords[i2], target_coords[i3])
+                                                   orig_coords[i1],
+                                                   orig_coords[i2],
+                                                   orig_coords[i3],
+                                                   target_coords[i1],
+                                                   target_coords[i2],
+                                                   target_coords[i3],
+                                                   )
                         median_coords[i2].append(pt)
 
                         pt = barycentric_transform(orig_shape_coords[i3],
-                            orig_coords[i2], orig_coords[i3], orig_coords[i4],

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list