[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30888] branches/soc-2010-nicolasbishop: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r30846 :30887
Nicholas Bishop
nicholasbishop at gmail.com
Fri Jul 30 07:51:33 CEST 2010
Revision: 30888
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30888
Author: nicholasbishop
Date: 2010-07-30 07:51:32 +0200 (Fri, 30 Jul 2010)
Log Message:
-----------
svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r30846:30887
Modified Paths:
--------------
branches/soc-2010-nicolasbishop/release/scripts/op/console_python.py
branches/soc-2010-nicolasbishop/release/scripts/ui/space_image.py
branches/soc-2010-nicolasbishop/release/scripts/ui/space_view3d_toolbar.py
branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_armature.h
branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_colortools.h
branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_text.h
branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_texture.h
branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/armature.c
branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/brush.c
branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/cdderivedmesh.c
branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/colortools.c
branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/text.c
branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/texture.c
branches/soc-2010-nicolasbishop/source/blender/blenloader/intern/readfile.c
branches/soc-2010-nicolasbishop/source/blender/editors/armature/editarmature.c
branches/soc-2010-nicolasbishop/source/blender/editors/armature/poseobject.c
branches/soc-2010-nicolasbishop/source/blender/editors/interface/interface_handlers.c
branches/soc-2010-nicolasbishop/source/blender/editors/interface/interface_templates.c
branches/soc-2010-nicolasbishop/source/blender/editors/object/object_select.c
branches/soc-2010-nicolasbishop/source/blender/editors/physics/particle_edit.c
branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/paint_utils.c
branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/paint_vertex.c
branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/sculpt.c
branches/soc-2010-nicolasbishop/source/blender/editors/space_sequencer/sequencer_edit.c
branches/soc-2010-nicolasbishop/source/blender/editors/space_text/text_ops.c
branches/soc-2010-nicolasbishop/source/blender/editors/space_view3d/view3d_draw.c
branches/soc-2010-nicolasbishop/source/blender/editors/space_view3d/view3d_edit.c
branches/soc-2010-nicolasbishop/source/blender/gpu/intern/gpu_material.c
branches/soc-2010-nicolasbishop/source/blender/gpu/intern/gpu_shader_material.glsl
branches/soc-2010-nicolasbishop/source/blender/gpu/intern/gpu_shader_material.glsl.c
branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_color.c
branches/soc-2010-nicolasbishop/source/blender/makesrna/intern/rna_modifier.c
branches/soc-2010-nicolasbishop/source/blender/nodes/intern/CMP_nodes/CMP_huecorrect.c
branches/soc-2010-nicolasbishop/source/blender/python/intern/bpy_interface.c
branches/soc-2010-nicolasbishop/source/blender/render/intern/source/volumetric.c
branches/soc-2010-nicolasbishop/source/darwin/Makefile
branches/soc-2010-nicolasbishop/source/gameengine/Converter/BL_ArmatureChannel.cpp
branches/soc-2010-nicolasbishop/source/gameengine/PyDoc/bge.types.rst
Modified: branches/soc-2010-nicolasbishop/release/scripts/op/console_python.py
===================================================================
--- branches/soc-2010-nicolasbishop/release/scripts/op/console_python.py 2010-07-30 04:57:27 UTC (rev 30887)
+++ branches/soc-2010-nicolasbishop/release/scripts/op/console_python.py 2010-07-30 05:51:32 UTC (rev 30888)
@@ -22,6 +22,9 @@
language_id = 'python'
+# store our own __main__ module, not 100% needed
+# but python expects this in some places
+_BPY_MAIN_OWN = True
def add_scrollback(text, text_type):
for l in text.split('\n'):
@@ -67,8 +70,21 @@
stdout = io.StringIO()
stderr = io.StringIO()
else:
- namespace = {"__builtins__": __builtins__, "bpy": bpy, "C": bpy.context}
+ if _BPY_MAIN_OWN:
+ import types
+ bpy_main_mod = types.ModuleType("__main__")
+ namespace = bpy_main_mod.__dict__
+ else:
+ namespace = {}
+
+ namespace["__builtins__"] = sys.modules["builtins"]
+ namespace["bpy"] = bpy
+ namespace["C"] = bpy.context
+
console = InteractiveConsole(locals=namespace, filename="<blender_console>")
+
+ if _BPY_MAIN_OWN:
+ console._bpy_main_mod = bpy_main_mod
import io
stdout = io.StringIO()
@@ -105,6 +121,10 @@
stdin_backup = sys.stdin
sys.stdin = None
+ if _BPY_MAIN_OWN:
+ main_mod_back = sys.modules["__main__"]
+ sys.modules["__main__"] = console._bpy_main_mod
+
# incase exception happens
line = "" # incase of encodingf error
is_multiline = False
@@ -121,6 +141,8 @@
import traceback
stderr.write(traceback.format_exc())
+ if _BPY_MAIN_OWN:
+ sys.modules["__main__"] = main_mod_back
stdout.seek(0)
stderr.seek(0)
Modified: branches/soc-2010-nicolasbishop/release/scripts/ui/space_image.py
===================================================================
--- branches/soc-2010-nicolasbishop/release/scripts/ui/space_image.py 2010-07-30 04:57:27 UTC (rev 30887)
+++ branches/soc-2010-nicolasbishop/release/scripts/ui/space_image.py 2010-07-30 05:51:32 UTC (rev 30888)
@@ -673,7 +673,6 @@
row.operator("brush.curve_preset", icon="SHARPCURVE", text="").shape = 'SHARP'
row.operator("brush.curve_preset", icon="LINCURVE", text="").shape = 'LINE'
row.operator("brush.curve_preset", icon="NOCURVE", text="").shape = 'MAX'
- row.operator("brush.curve_preset", icon="RNDCURVE", text="").shape = 'MID9'
classes = [
IMAGE_MT_view,
Modified: branches/soc-2010-nicolasbishop/release/scripts/ui/space_view3d_toolbar.py
===================================================================
--- branches/soc-2010-nicolasbishop/release/scripts/ui/space_view3d_toolbar.py 2010-07-30 04:57:27 UTC (rev 30887)
+++ branches/soc-2010-nicolasbishop/release/scripts/ui/space_view3d_toolbar.py 2010-07-30 05:51:32 UTC (rev 30888)
@@ -1020,7 +1020,6 @@
row.operator("brush.curve_preset", icon="SHARPCURVE", text="").shape = 'SHARP'
row.operator("brush.curve_preset", icon="LINCURVE", text="").shape = 'LINE'
row.operator("brush.curve_preset", icon="NOCURVE", text="").shape = 'MAX'
- row.operator("brush.curve_preset", icon="RNDCURVE", text="").shape = 'MID9'
class VIEW3D_PT_sculpt_options(PaintPanel):
bl_label = "Options"
Modified: branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_armature.h
===================================================================
--- branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_armature.h 2010-07-30 04:57:27 UTC (rev 30887)
+++ branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_armature.h 2010-07-30 05:51:32 UTC (rev 30888)
@@ -80,7 +80,6 @@
void make_local_armature(struct bArmature *arm);
struct bArmature *copy_armature(struct bArmature *arm);
-void bone_flip_name (char *name, int strip_number);
int bone_autoside_name (char *name, int strip_number, short axis, float head, float tail);
struct Bone *get_named_bone (struct bArmature *arm, const char *name);
Modified: branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_colortools.h
===================================================================
--- branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_colortools.h 2010-07-30 04:57:27 UTC (rev 30887)
+++ branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_colortools.h 2010-07-30 05:51:32 UTC (rev 30888)
@@ -53,9 +53,11 @@
struct CurveMapping *curvemapping_copy(struct CurveMapping *cumap);
void curvemapping_set_black_white(struct CurveMapping *cumap, float *black, float *white);
+#define CURVEMAP_SLOPE_NEGATIVE 0
+#define CURVEMAP_SLOPE_POSITIVE 1
+void curvemap_reset(struct CurveMap *cuma, struct rctf *clipr, int preset, int slope);
void curvemap_remove(struct CurveMap *cuma, int flag);
void curvemap_insert(struct CurveMap *cuma, float x, float y);
-void curvemap_reset(struct CurveMap *cuma, struct rctf *clipr, int preset);
void curvemap_sethandle(struct CurveMap *cuma, int type);
void curvemapping_changed(struct CurveMapping *cumap, int rem_doubles);
Modified: branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_text.h
===================================================================
--- branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_text.h 2010-07-30 04:57:27 UTC (rev 30887)
+++ branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_text.h 2010-07-30 05:51:32 UTC (rev 30888)
@@ -92,7 +92,7 @@
void comment (struct Text *text);
void indent (struct Text *text);
void uncomment (struct Text *text);
-int setcurr_tab (struct Text *text);
+int setcurr_tab_spaces (struct Text *text, int space);
void txt_add_marker (struct Text *text, struct TextLine *line, int start, int end, char color[4], int group, int flags);
short txt_clear_marker_region (struct Text *text, struct TextLine *line, int start, int end, int group, int flags);
Modified: branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_texture.h
===================================================================
--- branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_texture.h 2010-07-30 04:57:27 UTC (rev 30887)
+++ branches/soc-2010-nicolasbishop/source/blender/blenkernel/BKE_texture.h 2010-07-30 05:51:32 UTC (rev 30888)
@@ -62,6 +62,9 @@
struct ColorBand *add_colorband(int rangetype);
int do_colorband(struct ColorBand *coba, float in, float out[4]);
void colorband_table_RGBA(struct ColorBand *coba, float **array, int *size);
+int vergcband(const void *a1, const void *a2);
+struct CBData *colorband_element_add(struct ColorBand *coba, float position);
+int colorband_element_remove(struct ColorBand *coba, int index);
void default_tex(struct Tex *tex);
struct Tex *add_texture(const char *name);
Modified: branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/armature.c
===================================================================
--- branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/armature.c 2010-07-30 04:57:27 UTC (rev 30887)
+++ branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/armature.c 2010-07-30 05:51:32 UTC (rev 30888)
@@ -245,117 +245,6 @@
return bone;
}
-
-#define IS_SEPARATOR(a) (a=='.' || a==' ' || a=='-' || a=='_')
-
-/* finds the best possible flipped name. For renaming; check for unique names afterwards */
-/* if strip_number: removes number extensions */
-void bone_flip_name (char *name, int strip_number)
-{
- int len;
- char prefix[128]={""}; /* The part before the facing */
- char suffix[128]={""}; /* The part after the facing */
- char replace[128]={""}; /* The replacement string */
- char number[128]={""}; /* The number extension string */
- char *index=NULL;
-
- len= strlen(name);
- if(len<3) return; // we don't do names like .R or .L
-
- /* We first check the case with a .### extension, let's find the last period */
- if(isdigit(name[len-1])) {
- index= strrchr(name, '.'); // last occurrence
- if (index && isdigit(index[1]) ) { // doesnt handle case bone.1abc2 correct..., whatever!
- if(strip_number==0)
- strcpy(number, index);
- *index= 0;
- len= strlen(name);
- }
- }
-
- strcpy (prefix, name);
-
- /* first case; separator . - _ with extensions r R l L */
- if( IS_SEPARATOR(name[len-2]) ) {
- switch(name[len-1]) {
- case 'l':
- prefix[len-1]= 0;
- strcpy(replace, "r");
- break;
- case 'r':
- prefix[len-1]= 0;
- strcpy(replace, "l");
- break;
- case 'L':
- prefix[len-1]= 0;
- strcpy(replace, "R");
- break;
- case 'R':
- prefix[len-1]= 0;
- strcpy(replace, "L");
- break;
- }
- }
- /* case; beginning with r R l L , with separator after it */
- else if( IS_SEPARATOR(name[1]) ) {
- switch(name[0]) {
- case 'l':
- strcpy(replace, "r");
- strcpy(suffix, name+1);
- prefix[0]= 0;
- break;
- case 'r':
- strcpy(replace, "l");
- strcpy(suffix, name+1);
- prefix[0]= 0;
- break;
- case 'L':
- strcpy(replace, "R");
- strcpy(suffix, name+1);
- prefix[0]= 0;
- break;
- case 'R':
- strcpy(replace, "L");
- strcpy(suffix, name+1);
- prefix[0]= 0;
- break;
- }
- }
- else if(len > 5) {
- /* hrms, why test for a separator? lets do the rule 'ultimate left or right' */
- index = BLI_strcasestr(prefix, "right");
- if (index==prefix || index==prefix+len-5) {
- if(index[0]=='r')
- strcpy (replace, "left");
- else {
- if(index[1]=='I')
- strcpy (replace, "LEFT");
- else
- strcpy (replace, "Left");
- }
- *index= 0;
- strcpy (suffix, index+5);
- }
- else {
- index = BLI_strcasestr(prefix, "left");
- if (index==prefix || index==prefix+len-4) {
- if(index[0]=='l')
- strcpy (replace, "right");
- else {
- if(index[1]=='E')
- strcpy (replace, "RIGHT");
- else
- strcpy (replace, "Right");
- }
- *index= 0;
- strcpy (suffix, index+4);
- }
- }
- }
-
- sprintf (name, "%s%s%s%s", prefix, replace, suffix, number);
-}
-
/* Finds the best possible extension to the name on a particular axis. (For renaming, check for unique names afterwards)
* This assumes that bone names are at most 32 chars long!
* strip_number: removes number extensions (TODO: not used)
Modified: branches/soc-2010-nicolasbishop/source/blender/blenkernel/intern/brush.c
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list