[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38633] branches/soc-2011-pepper: Merging with trunk up to r38631.

Joerg Mueller nexyon at gmail.com
Sat Jul 23 18:34:30 CEST 2011


Revision: 38633
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38633
Author:   nexyon
Date:     2011-07-23 16:34:30 +0000 (Sat, 23 Jul 2011)
Log Message:
-----------
Merging with trunk up to r38631.

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

Modified Paths:
--------------
    branches/soc-2011-pepper/CMakeLists.txt
    branches/soc-2011-pepper/release/scripts/startup/bl_operators/object_align.py
    branches/soc-2011-pepper/release/scripts/startup/bl_ui/space_image.py
    branches/soc-2011-pepper/release/scripts/startup/bl_ui/space_info.py
    branches/soc-2011-pepper/release/scripts/startup/bl_ui/space_view3d.py
    branches/soc-2011-pepper/source/blender/blenkernel/CMakeLists.txt
    branches/soc-2011-pepper/source/blender/blenkernel/SConscript
    branches/soc-2011-pepper/source/blender/blenkernel/intern/writeavi.c
    branches/soc-2011-pepper/source/blender/blenkernel/intern/writeframeserver.c
    branches/soc-2011-pepper/source/blender/editors/include/ED_node.h
    branches/soc-2011-pepper/source/blender/editors/render/render_shading.c
    branches/soc-2011-pepper/source/blender/editors/space_node/drawnode.c
    branches/soc-2011-pepper/source/blender/editors/space_node/node_edit.c
    branches/soc-2011-pepper/source/blender/editors/transform/transform.c
    branches/soc-2011-pepper/source/blender/editors/transform/transform_conversions.c
    branches/soc-2011-pepper/source/blender/editors/transform/transform_ops.c
    branches/soc-2011-pepper/source/blender/editors/uvedit/uvedit_ops.c
    branches/soc-2011-pepper/source/blender/makesdna/DNA_node_types.h
    branches/soc-2011-pepper/source/blender/makesdna/DNA_scene_types.h
    branches/soc-2011-pepper/source/blender/makesrna/intern/CMakeLists.txt
    branches/soc-2011-pepper/source/blender/makesrna/intern/SConscript
    branches/soc-2011-pepper/source/blender/makesrna/intern/rna_scene.c
    branches/soc-2011-pepper/source/blender/render/intern/source/convertblender.c
    branches/soc-2011-pepper/source/gameengine/Expressions/PyObjectPlus.cpp
    branches/soc-2011-pepper/source/gameengine/Expressions/PyObjectPlus.h

Property Changed:
----------------
    branches/soc-2011-pepper/


Property changes on: branches/soc-2011-pepper
___________________________________________________________________
Modified: svn:mergeinfo
   - /trunk/blender:36830-38584
   + /trunk/blender:36830-38631

Modified: branches/soc-2011-pepper/CMakeLists.txt
===================================================================
--- branches/soc-2011-pepper/CMakeLists.txt	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/CMakeLists.txt	2011-07-23 16:34:30 UTC (rev 38633)
@@ -155,6 +155,7 @@
 option(WITH_IMAGE_CINEON        "Enable CINEON and DPX Image Support" ON)
 option(WITH_IMAGE_HDR           "Enable HDR Image Support" ON)
 option(WITH_IMAGE_REDCODE       "Enable RedCode Image Support" OFF)
+option(WITH_IMAGE_FRAMESERVER   "Enable image FrameServer Support for rendering" ON)
 
 # Audio/Video format support
 option(WITH_CODEC_FFMPEG        "Enable FFMPeg Support (http://ffmpeg.org)" OFF)

Modified: branches/soc-2011-pepper/release/scripts/startup/bl_operators/object_align.py
===================================================================
--- branches/soc-2011-pepper/release/scripts/startup/bl_operators/object_align.py	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/release/scripts/startup/bl_operators/object_align.py	2011-07-23 16:34:30 UTC (rev 38633)
@@ -340,7 +340,7 @@
     bb_quality = BoolProperty(
             name="High Quality",
             description="Enables high quality calculation of the bounding box for perfect results on complex shape meshes with rotation/scale (Slow)",
-            default=False)
+            default=True)
 
     align_mode = EnumProperty(items=(
             ('OPT_1', "Negative Sides", ""),
@@ -380,4 +380,4 @@
             self.report({'WARNING'}, "No objects with bound-box selected")
             return {'CANCELLED'}
         else:
-            return {'FINISHED'}
\ No newline at end of file
+            return {'FINISHED'}

Modified: branches/soc-2011-pepper/release/scripts/startup/bl_ui/space_image.py
===================================================================
--- branches/soc-2011-pepper/release/scripts/startup/bl_ui/space_image.py	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/release/scripts/startup/bl_ui/space_image.py	2011-07-23 16:34:30 UTC (rev 38633)
@@ -198,7 +198,11 @@
         layout.operator("transform.rotate")
         layout.operator("transform.resize")
 
+        layout.separator()
 
+        layout.operator("transform.shear")
+
+
 class IMAGE_MT_uvs_snap(bpy.types.Menu):
     bl_label = "Snap"
 

Modified: branches/soc-2011-pepper/release/scripts/startup/bl_ui/space_info.py
===================================================================
--- branches/soc-2011-pepper/release/scripts/startup/bl_ui/space_info.py	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/release/scripts/startup/bl_ui/space_info.py	2011-07-23 16:34:30 UTC (rev 38633)
@@ -60,9 +60,11 @@
         layout.template_running_jobs()
 
         layout.template_reports_banner()
+        
+        row = layout.row(align=True)
+        row.operator("wm.splash", text="", icon='BLENDER', emboss=False)
+        row.label(text=scene.statistics())
 
-        layout.label(text=scene.statistics())
-
         # XXX: this should be right-aligned to the RHS of the region
         layout.operator("wm.window_fullscreen_toggle", icon='FULLSCREEN_ENTER', text="")
 

Modified: branches/soc-2011-pepper/release/scripts/startup/bl_ui/space_view3d.py
===================================================================
--- branches/soc-2011-pepper/release/scripts/startup/bl_ui/space_view3d.py	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/release/scripts/startup/bl_ui/space_view3d.py	2011-07-23 16:34:30 UTC (rev 38633)
@@ -68,7 +68,7 @@
         if obj:
             # Particle edit
             if obj.mode == 'PARTICLE_EDIT':
-                row.prop(toolsettings.particle_edit, "select_mode", text="", expand=True, toggle=True)
+                row.prop(toolsettings.particle_edit, "select_mode", text="", expand=True)
 
             # Occlude geometry
             if view.viewport_shade in {'SOLID', 'SHADED', 'TEXTURED'} and (obj.mode == 'PARTICLE_EDIT' or (obj.mode == 'EDIT' and obj.type == 'MESH')):

Modified: branches/soc-2011-pepper/source/blender/blenkernel/CMakeLists.txt
===================================================================
--- branches/soc-2011-pepper/source/blender/blenkernel/CMakeLists.txt	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/source/blender/blenkernel/CMakeLists.txt	2011-07-23 16:34:30 UTC (rev 38633)
@@ -279,6 +279,10 @@
 	add_definitions(-DWITH_CINEON)
 endif()
 
+if(WITH_IMAGE_FRAMESERVER)
+	add_definitions(-DWITH_FRAMESERVER)
+endif()
+
 if(WITH_IMAGE_HDR)
 	add_definitions(-DWITH_HDR)
 endif()

Modified: branches/soc-2011-pepper/source/blender/blenkernel/SConscript
===================================================================
--- branches/soc-2011-pepper/source/blender/blenkernel/SConscript	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/source/blender/blenkernel/SConscript	2011-07-23 16:34:30 UTC (rev 38633)
@@ -22,6 +22,7 @@
 defs = [ 'GLEW_STATIC' ]
 
 defs.append('WITH_SMOKE')  # TODO, make optional
+defs.append('WITH_FRAMESERVER')  # TODO, make optional
 
 if env['WITH_BF_PYTHON']:
     incs += ' ../python'

Modified: branches/soc-2011-pepper/source/blender/blenkernel/intern/writeavi.c
===================================================================
--- branches/soc-2011-pepper/source/blender/blenkernel/intern/writeavi.c	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/source/blender/blenkernel/intern/writeavi.c	2011-07-23 16:34:30 UTC (rev 38633)
@@ -105,13 +105,18 @@
 		mh.get_movie_path = filepath_ffmpeg;
 	}
 #endif
+#ifdef WITH_FRAMESERVER
 	if (imtype == R_FRAMESERVER) {
 		mh.start_movie = start_frameserver;
 		mh.append_movie = append_frameserver;
 		mh.end_movie = end_frameserver;
 		mh.get_next_frame = frameserver_loop;
 	}
-	
+#endif
+
+	/* incase all above are disabled */
+	(void)imtype;
+
 	return &mh;
 }
 

Modified: branches/soc-2011-pepper/source/blender/blenkernel/intern/writeframeserver.c
===================================================================
--- branches/soc-2011-pepper/source/blender/blenkernel/intern/writeframeserver.c	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/source/blender/blenkernel/intern/writeframeserver.c	2011-07-23 16:34:30 UTC (rev 38633)
@@ -22,6 +22,7 @@
  *
  */
 
+#ifdef WITH_FRAMESERVER
 
 #include <string.h>
 #include <stdio.h>
@@ -381,3 +382,4 @@
 	shutdown_socket_system();
 }
 
+#endif /* WITH_FRAMESERVER */

Modified: branches/soc-2011-pepper/source/blender/editors/include/ED_node.h
===================================================================
--- branches/soc-2011-pepper/source/blender/editors/include/ED_node.h	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/source/blender/editors/include/ED_node.h	2011-07-23 16:34:30 UTC (rev 38633)
@@ -39,6 +39,7 @@
 struct bContext;
 struct bNode;
 struct ID;
+struct ScrArea;
 
 /* drawnode.c */
 void ED_init_node_butfuncs(void);
@@ -51,6 +52,8 @@
 void ED_node_shader_default(struct Material *ma);
 void ED_node_composit_default(struct Scene *sce);
 void ED_node_texture_default(struct Tex *tex);
+void ED_node_link_intersect_test(struct ScrArea *sa, int test);
+void ED_node_link_insert(struct ScrArea *sa);
 
 /* node ops.c */
 void ED_operatormacros_node(void);

Modified: branches/soc-2011-pepper/source/blender/editors/render/render_shading.c
===================================================================
--- branches/soc-2011-pepper/source/blender/editors/render/render_shading.c	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/source/blender/editors/render/render_shading.c	2011-07-23 16:34:30 UTC (rev 38633)
@@ -108,7 +108,7 @@
 	/* identifiers */
 	ot->name= "Add Material Slot";
 	ot->idname= "OBJECT_OT_material_slot_add";
-	ot->description="Add a new material slot or duplicate the selected one";
+	ot->description="Add a new material slot";
 	
 	/* api callbacks */
 	ot->exec= material_slot_add_exec;

Modified: branches/soc-2011-pepper/source/blender/editors/space_node/drawnode.c
===================================================================
--- branches/soc-2011-pepper/source/blender/editors/space_node/drawnode.c	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/source/blender/editors/space_node/drawnode.c	2011-07-23 16:34:30 UTC (rev 38633)
@@ -1869,10 +1869,17 @@
 		else {
 			/* check cyclic */
 			if(link->fromnode->level >= link->tonode->level && link->tonode->level!=0xFFF) {
-				if(link->fromnode->flag & SELECT)
-					th_col1= TH_EDGE_SELECT;
-				if(link->tonode->flag & SELECT)
-					th_col2= TH_EDGE_SELECT;
+				/* special indicated link, on drop-node */
+				if(link->flag & NODE_LINKFLAG_HILITE) {
+					th_col1= th_col2= TH_ACTIVE;
+				}
+				else {
+					/* regular link */
+					if(link->fromnode->flag & SELECT)
+						th_col1= TH_EDGE_SELECT;
+					if(link->tonode->flag & SELECT)
+						th_col2= TH_EDGE_SELECT;
+				}
 				do_shaded= 1;
 				do_triple= 1;
 			}				

Modified: branches/soc-2011-pepper/source/blender/editors/space_node/node_edit.c
===================================================================
--- branches/soc-2011-pepper/source/blender/editors/space_node/node_edit.c	2011-07-23 16:34:27 UTC (rev 38632)
+++ branches/soc-2011-pepper/source/blender/editors/space_node/node_edit.c	2011-07-23 16:34:30 UTC (rev 38633)
@@ -2492,6 +2492,151 @@
 	RNA_def_int(ot->srna, "cursor", BC_KNIFECURSOR, 0, INT_MAX, "Cursor", "", 0, INT_MAX);
 }
 
+/* *********************  automatic node insert on dragging ******************* */
+
+/* assumes sockets in list */
+static bNodeSocket *socket_best_match(ListBase *sockets, int type)
+{
+	bNodeSocket *sock;
+	
+	/* first, match type */
+	for(sock= sockets->first; sock; sock= sock->next)
+		if(!(sock->flag & SOCK_HIDDEN))
+			if(type == sock->type)
+				return sock;
+	
+	/* then just use first unhidden socket */
+	for(sock= sockets->first; sock; sock= sock->next)
+		if(!(sock->flag & SOCK_HIDDEN))
+			return sock;
+
+	/* OK, let's unhide proper one */
+	for(sock= sockets->first; sock; sock= sock->next) {
+		if(type == sock->type) {
+			sock->flag &= ~SOCK_HIDDEN;
+			return sock;
+		}
+	}
+	
+	/* just the first */
+	sock= sockets->first;
+	sock->flag &= ~SOCK_HIDDEN;
+	
+	return sockets->first;

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list