[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11852] branches/particles: Merge from trunk: revisions 11589-11847
Janne Karhu
jhkarh at utu.fi
Mon Aug 27 23:45:18 CEST 2007
Revision: 11852
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11852
Author: jhk
Date: 2007-08-27 23:45:18 +0200 (Mon, 27 Aug 2007)
Log Message:
-----------
Merge from trunk: revisions 11589-11847
Modified Paths:
--------------
branches/particles/SConstruct
branches/particles/bin/.blender/locale/it/LC_MESSAGES/blender.mo
branches/particles/config/darwin-config.py
branches/particles/doc/blender-scons.txt
branches/particles/intern/bmfont/BMF_Api.h
branches/particles/intern/bmfont/intern/BMF_Api.cpp
branches/particles/intern/bmfont/intern/BMF_BitmapFont.cpp
branches/particles/intern/bmfont/intern/BMF_BitmapFont.h
branches/particles/intern/ghost/intern/GHOST_DisplayManager.cpp
branches/particles/po/it.po
branches/particles/projectfiles_vc7/blender/nodes/nodes.vcproj
branches/particles/release/datafiles/blenderbuttons
branches/particles/release/scripts/bpymodules/BPyObject.py
branches/particles/release/scripts/console.py
branches/particles/release/scripts/export_fbx.py
branches/particles/release/scripts/export_obj.py
branches/particles/release/scripts/mesh_unfolder.py
branches/particles/source/blender/blenkernel/BKE_bad_level_calls.h
branches/particles/source/blender/blenkernel/BKE_deform.h
branches/particles/source/blender/blenkernel/BKE_key.h
branches/particles/source/blender/blenkernel/BKE_node.h
branches/particles/source/blender/blenkernel/bad_level_call_stubs/stubs.c
branches/particles/source/blender/blenkernel/intern/constraint.c
branches/particles/source/blender/blenkernel/intern/curve.c
branches/particles/source/blender/blenkernel/intern/deform.c
branches/particles/source/blender/blenkernel/intern/depsgraph.c
branches/particles/source/blender/blenkernel/intern/exotic.c
branches/particles/source/blender/blenkernel/intern/ipo.c
branches/particles/source/blender/blenkernel/intern/key.c
branches/particles/source/blender/blenkernel/intern/node.c
branches/particles/source/blender/blenloader/intern/writefile.c
branches/particles/source/blender/ftfont/FTF_Api.h
branches/particles/source/blender/ftfont/intern/FTF_TTFont.h
branches/particles/source/blender/include/BIF_editaction.h
branches/particles/source/blender/include/BIF_editarmature.h
branches/particles/source/blender/include/BIF_language.h
branches/particles/source/blender/include/BSE_editipo.h
branches/particles/source/blender/include/blendef.h
branches/particles/source/blender/include/butspace.h
branches/particles/source/blender/makesdna/DNA_curve_types.h
branches/particles/source/blender/nodes/SHD_node.h
branches/particles/source/blender/python/BPY_extern.h
branches/particles/source/blender/python/BPY_interface.c
branches/particles/source/blender/python/api2_2x/Armature.c
branches/particles/source/blender/python/api2_2x/Draw.c
branches/particles/source/blender/python/api2_2x/Material.c
branches/particles/source/blender/python/api2_2x/Mesh.c
branches/particles/source/blender/python/api2_2x/Types.c
branches/particles/source/blender/python/api2_2x/doc/Mesh.py
branches/particles/source/blender/python/api2_2x/gen_utils.c
branches/particles/source/blender/python/api2_2x/gen_utils.h
branches/particles/source/blender/python/api2_2x/rgbTuple.c
branches/particles/source/blender/src/blenderbuttons.c
branches/particles/source/blender/src/buttons_editing.c
branches/particles/source/blender/src/buttons_object.c
branches/particles/source/blender/src/buttons_shading.c
branches/particles/source/blender/src/drawaction.c
branches/particles/source/blender/src/drawipo.c
branches/particles/source/blender/src/drawnode.c
branches/particles/source/blender/src/drawtime.c
branches/particles/source/blender/src/editaction.c
branches/particles/source/blender/src/editconstraint.c
branches/particles/source/blender/src/editipo.c
branches/particles/source/blender/src/editipo_lib.c
branches/particles/source/blender/src/editipo_mods.c
branches/particles/source/blender/src/header_action.c
branches/particles/source/blender/src/header_ipo.c
branches/particles/source/blender/src/headerbuttons.c
branches/particles/source/blender/src/interface.c
branches/particles/source/blender/src/language.c
branches/particles/source/blender/src/sculptmode.c
branches/particles/source/blender/src/space.c
branches/particles/source/blender/src/vpaint.c
branches/particles/source/creator/creator.c
branches/particles/tools/Blender.py
branches/particles/tools/btools.py
Added Paths:
-----------
branches/particles/source/blender/nodes/intern/SHD_nodes/SHD_sepcombRGB.c
Modified: branches/particles/SConstruct
===================================================================
--- branches/particles/SConstruct 2007-08-27 21:32:33 UTC (rev 11851)
+++ branches/particles/SConstruct 2007-08-27 21:45:18 UTC (rev 11852)
@@ -429,8 +429,10 @@
Depends(nsiscmd, allinstall)
Default(B.program_list)
-Default(installtarget)
+if not env['WITHOUT_BF_INSTALL']:
+ Default(installtarget)
+
#------------ RELEASE
# TODO: zipup the installation
Modified: branches/particles/bin/.blender/locale/it/LC_MESSAGES/blender.mo
===================================================================
(Binary files differ)
Modified: branches/particles/config/darwin-config.py
===================================================================
--- branches/particles/config/darwin-config.py 2007-08-27 21:32:33 UTC (rev 11851)
+++ branches/particles/config/darwin-config.py 2007-08-27 21:45:18 UTC (rev 11852)
@@ -48,8 +48,8 @@
BF_FMOD = LIBDIR + '/fmod'
WITH_BF_OPENEXR = 'true'
-BF_OPENEXR = '/usr/local'
-BF_OPENEXR_INC = '${BF_OPENEXR}/include/OpenEXR'
+BF_OPENEXR = '${LCGDIR}/openexr'
+BF_OPENEXR_INC = '${BF_OPENEXR}/include ${BF_OPENEXR}/include/OpenEXR'
BF_OPENEXR_LIB = ' Iex Half IlmImf Imath IlmThread'
WITH_BF_DDS = 'true'
Modified: branches/particles/doc/blender-scons.txt
===================================================================
--- branches/particles/doc/blender-scons.txt 2007-08-27 21:32:33 UTC (rev 11851)
+++ branches/particles/doc/blender-scons.txt 2007-08-27 21:45:18 UTC (rev 11852)
@@ -160,6 +160,17 @@
for example, setting BF_QUICKDEBUG won't overwrite the contents of BF_DEBUG_LIBS.
+ Not installing
+ --------------
+
+ If you dont want to install the build result, you can use the following option either
+ on the commandline or in your user-config.py :
+
+ WITHOUT_BF_INSTALL='true'
+
+ by default, this is set to 'false', and so the build is installed
+
+
Supported toolset
-----------------
Modified: branches/particles/intern/bmfont/BMF_Api.h
===================================================================
--- branches/particles/intern/bmfont/BMF_Api.h 2007-08-27 21:32:33 UTC (rev 11851)
+++ branches/particles/intern/bmfont/BMF_Api.h 2007-08-27 21:45:18 UTC (rev 11852)
@@ -89,13 +89,25 @@
int BMF_GetStringWidth(BMF_Font* font, char* str);
/**
+ * Returns the bounding box of a string of characters.
+ * @param font The font to use.
+ * @param str The string.
+ * @param llx Lower left x coord
+ * @param lly Lower left y coord
+ * @param urx Upper right x coord
+ * @param ury Upper right y coord
+ */
+void BMF_GetStringBoundingBox(BMF_Font* font, char* str, float*llx, float *lly, float *urx, float *ury);
+
+
+/**
* Returns the bounding box of the font. The width and
* height represent the bounding box of the union of
* all glyps. The minimum and maximum values of the
* box represent the extent of the font and its positioning
* about the origin.
*/
-void BMF_GetBoundingBox(BMF_Font* font, int *xmin_r, int *ymin_r, int *xmax_r, int *ymax_r);
+void BMF_GetFontBoundingBox(BMF_Font* font, int *xmin_r, int *ymin_r, int *xmax_r, int *ymax_r);
/**
* Convert the given @a font to a texture, and return the GL texture
Modified: branches/particles/intern/bmfont/intern/BMF_Api.cpp
===================================================================
--- branches/particles/intern/bmfont/intern/BMF_Api.cpp 2007-08-27 21:32:33 UTC (rev 11851)
+++ branches/particles/intern/bmfont/intern/BMF_Api.cpp 2007-08-27 21:45:18 UTC (rev 11852)
@@ -150,11 +150,18 @@
return ((BMF_BitmapFont*)font)->GetStringWidth(str);
}
+void BMF_GetStringBoundingBox(BMF_Font* font, char* str, float*llx, float *lly, float *urx, float *ury){
+ if (!font){
+ *llx = *lly = *urx = *ury = 0;
+ }else{
+ ((BMF_BitmapFont*)font)->GetStringBoundingBox(str, llx, lly, urx, ury);
+ }
+}
-void BMF_GetBoundingBox(BMF_Font* font, int *xmin_r, int *ymin_r, int *xmax_r, int *ymax_r)
+void BMF_GetFontBoundingBox(BMF_Font* font, int *xmin_r, int *ymin_r, int *xmax_r, int *ymax_r)
{
if (!font) return;
- ((BMF_BitmapFont*)font)->GetBoundingBox(*xmin_r, *ymin_r, *xmax_r, *ymax_r);
+ ((BMF_BitmapFont*)font)->GetFontBoundingBox(*xmin_r, *ymin_r, *xmax_r, *ymax_r);
}
int BMF_GetFontTexture(BMF_Font* font) {
Modified: branches/particles/intern/bmfont/intern/BMF_BitmapFont.cpp
===================================================================
--- branches/particles/intern/bmfont/intern/BMF_BitmapFont.cpp 2007-08-27 21:32:33 UTC (rev 11851)
+++ branches/particles/intern/bmfont/intern/BMF_BitmapFont.cpp 2007-08-27 21:45:18 UTC (rev 11852)
@@ -107,7 +107,7 @@
return length;
}
-void BMF_BitmapFont::GetBoundingBox(int & xMin, int & yMin, int & xMax, int & yMax)
+void BMF_BitmapFont::GetFontBoundingBox(int & xMin, int & yMin, int & xMax, int & yMax)
{
xMin = m_fontData->xmin;
yMin = m_fontData->ymin;
@@ -115,6 +115,27 @@
yMax = m_fontData->ymax;
}
+void BMF_BitmapFont::GetStringBoundingBox(char* str, float*llx, float *lly, float *urx, float *ury)
+{
+ unsigned char c;
+ int length = 0;
+ int ascent = 0;
+ int descent = 0;
+
+ while ( (c = (unsigned char) *str++) ) {
+ length += m_fontData->chars[c].advance;
+ int d = m_fontData->chars[c].yorig;
+ int a = m_fontData->chars[c].height - m_fontData->chars[c].yorig;
+ if(a > ascent) ascent = a;
+ if(d > descent) descent = d;
+ }
+ *llx = (float)0;
+ *lly = (float)-descent;
+ *urx = (float)length;
+ *ury = (float)ascent;
+}
+
+
int BMF_BitmapFont::GetTexture()
{
int fWidth = m_fontData->xmax - m_fontData->xmin;
Modified: branches/particles/intern/bmfont/intern/BMF_BitmapFont.h
===================================================================
--- branches/particles/intern/bmfont/intern/BMF_BitmapFont.h 2007-08-27 21:32:33 UTC (rev 11851)
+++ branches/particles/intern/bmfont/intern/BMF_BitmapFont.h 2007-08-27 21:45:18 UTC (rev 11852)
@@ -76,8 +76,20 @@
* box represent the extent of the font and its positioning
* about the origin.
*/
- void GetBoundingBox(int & xMin, int & yMin, int & xMax, int & yMax);
+ void GetFontBoundingBox(int & xMin, int & yMin, int & xMax, int & yMax);
+
+ /**
+ * Returns the bounding box of a string of characters.
+ * @param font The font to use.
+ * @param str The string.
+ * @param llx Lower left x coord
+ * @param lly Lower left y coord
+ * @param urx Upper right x coord
+ * @param ury Upper right y coord
+ */
+ void GetStringBoundingBox(char* str, float*llx, float *lly, float *urx, float *ury);
+
/**
* Convert the font to a texture, and return the GL texture
* ID of the texture. If the texture ID is bound, text can
Modified: branches/particles/intern/ghost/intern/GHOST_DisplayManager.cpp
===================================================================
--- branches/particles/intern/ghost/intern/GHOST_DisplayManager.cpp 2007-08-27 21:32:33 UTC (rev 11851)
+++ branches/particles/intern/ghost/intern/GHOST_DisplayManager.cpp 2007-08-27 21:45:18 UTC (rev 11852)
@@ -116,7 +116,7 @@
GHOST_TUns8 numDisplays;
success = getNumDisplays(numDisplays);
if (success == GHOST_kSuccess) {
- if (display < numDisplays && index < m_settings[display].size()) {
+ if (display < numDisplays && ((GHOST_TUns8)index < m_settings[display].size())) {
setting = m_settings[display][index];
}
else {
Modified: branches/particles/po/it.po
===================================================================
--- branches/particles/po/it.po 2007-08-27 21:32:33 UTC (rev 11851)
+++ branches/particles/po/it.po 2007-08-27 21:45:18 UTC (rev 11852)
@@ -1,22 +1,18 @@
-# translation of it-244.po to Italian
-# translation of it.po to Italian
# Italian translation for blender
#
-msgid ""
-msgstr ""
-"Project-Id-Version: it-244\n"
-"POT-Creation-Date: \n"
-"PO-Revision-Date: 2007-07-07 01:40+0100\n"
-"Last-Translator: Skynet_italy <fiott at tin.it>\n"
-"Language-Team: <it at li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Poedit-Language: Italian\n"
-"X-Poedit-Country: ITALY\n"
-"X-Poedit-SourceCharset: utf-8\n"
-"X-Generator: KBabel 1.11.4\n"
-"X-Poedit-Bookmarks: 221,-1,-1,-1,-1,-1,-1,-1,-1,-1\n"
+#"Project-Id-Version: it-245\n"
+#"POT-Creation-Date: \n"
+#"PO-Revision-Date: 2007-08-23 00:10+0100\n"
+#"Last-Translator: Skynet_italy <fiott at tin.it>\n"
+#"Language-Team: <it at li.org>\n"
+#"MIME-Version: 1.0\n"
+#"Content-Type: text/plain; charset=UTF-8\n"
+#"Content-Transfer-Encoding: 8bit\n"
+#"X-Poedit-Language: Italian\n"
+#"X-Poedit-Country: ITALY\n"
+#"X-Poedit-SourceCharset: utf-8\n"
+#"X-Generator: KBabel 1.11.4\n"
+#"X-Poedit-Bookmarks: 221,-1,-1,-1,-1,-1,-1,-1,-1,-1\n"
msgid " - sys evt"
msgstr " - sys evt"
@@ -409,22 +405,22 @@
msgstr "Specifica quanto stretta deve essere l'onda"
msgid "Vert.Groups"
-msgstr "Gruppi Vert."
+msgstr "Gruppo Vert."
msgid "Enable VertexGroups defining deform"
-msgstr "Abilita i Gruppi di vertici per definire la deformazione"
+msgstr "Abilita VGroup per la deformazione"
msgid "Envelopes"
msgstr "Inviluppi"
msgid "Enable Bone Envelopes defining deform"
-msgstr "Abilita Inviluppo Ossa che definiscono la deformazione"
+msgstr "Abilita Inviluppo Ossa per la deformazione"
msgid "Falloff: "
msgstr "Decadimento: "
msgid "If not zero, the distance from hook where influence ends"
-msgstr "Se diverso da zero, la distanza dal gancio dove l'influenza finisce"
+msgstr "Se diverso da zero , é la distanza dal gancio a dove finisce l'influenza"
msgid "Force: "
msgstr "Forza:"
@@ -442,7 +438,7 @@
msgstr "Ricentra"
msgid "Sets hook center to cursor position"
-msgstr "Imposta il centro del gancio alla posizione del cursore"
+msgstr "Imposta il centro del gancio dalla posizione del cursore"
msgid "Select"
msgstr "Seleziona"
@@ -694,7 +690,7 @@
msgstr "Inclina:"
msgid "Italic angle of the characters"
-msgstr "inclinazione caratteri in corsivo"
+msgstr "Inclinazione caratteri in corsivo"
msgid "Y offset:"
msgstr "Offset Y:"
@@ -709,13 +705,13 @@
msgstr "Spessore sottolineatura"
msgid "Textbox to show settings for"
-msgstr "Box di testo da visualizzare i settagi per"
+msgstr "Box di testo da visualizzare i settaggi per"
msgid "Insert"
msgstr "Inserisci"
msgid "Insert a new text frame after the current one"
-msgstr "Inserisce una nuova cornice dopo la corrente"
+msgstr "Inserisce una nuova cornice di testo dopo la corrente"
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list