8 years agoPython API changelog r37840-40524 (HEAD)
Dalai Felinto [Sat, 24 Sep 2011 22:40:56 +0000 (22:40 +0000)]
Python API changelog r37840-40524 (HEAD)
updating the doc.

I'm also including the latest API dump with it. This helps to keep track of the revisions to update and the next person updating doesnt need to build an old Blender for that (as I just had to).

I updated the with this info as well.
I'll update changelog.rst manually next. I'm not so sure how to indicate that the properties were replaced instead of only removed.

8 years agoremoving texface rna - changelog.rst update soon
Dalai Felinto [Sat, 24 Sep 2011 22:15:37 +0000 (22:15 +0000)]
removing texface rna - changelog.rst update soon

8 years agoMinor: Added PROP_DISTANCE sub-type to min/max dstances of WeightVG Proximity, and...
Bastien Montagne [Sat, 24 Sep 2011 16:17:23 +0000 (16:17 +0000)]
Minor: Added PROP_DISTANCE sub-type to min/max dstances of WeightVG Proximity, and Radius of Warp modifiers.

8 years agoedits to internal renderer - no functional changes.
Campbell Barton [Sat, 24 Sep 2011 14:34:24 +0000 (14:34 +0000)]
edits to internal renderer - no functional changes.
- move some larger vars into a nested scope.
- replace memset with zero initializer.
- rempace VECCOPY macros with copy_v3v3
- change function args to give the float array length.

8 years agofix [#28736] FaceMask crash on Weight Paint
Campbell Barton [Sat, 24 Sep 2011 11:24:34 +0000 (11:24 +0000)]
fix [#28736] FaceMask crash on Weight Paint

8 years agosvn merge ^/branches/bmesh/blender -r40512:40513
Campbell Barton [Sat, 24 Sep 2011 11:10:53 +0000 (11:10 +0000)]
svn merge ^/branches/bmesh/blender -r40512:40513

8 years agoMinor: Other UI strings typos and tweaks. Also updated french po & mo
Bastien Montagne [Sat, 24 Sep 2011 09:57:47 +0000 (09:57 +0000)]
Minor: Other UI strings typos and tweaks. Also updated french po & mo

8 years agoFix for recent Campbell's commit.
Sergey Sharybin [Fri, 23 Sep 2011 19:33:04 +0000 (19:33 +0000)]
Fix for recent Campbell's commit.

8 years agosome speedup for drawing mesh in texture mode.
Campbell Barton [Fri, 23 Sep 2011 18:29:45 +0000 (18:29 +0000)]
some speedup for drawing mesh in texture mode.
- only pass if the mesh has vertex colors to drawParams() rather then the mcol its self, this saves a lookup on the color.
- drawing textures in editmode with no vertex colors would still lookup vertex colors on each face, instead cache this info for all faces.

8 years agoFix [#28729] World units not used for new object creation.
Bastien Montagne [Fri, 23 Sep 2011 17:44:57 +0000 (17:44 +0000)]
Fix [#28729] World units not used for new object creation.
Setting PROP_DISTANCE subtype for "size" properties of add mesh operators.

8 years ago- move animsys update operator into the
Campbell Barton [Fri, 23 Sep 2011 17:38:52 +0000 (17:38 +0000)]
- move animsys update operator into the
- move the data into module so its not loaded on blender start.

8 years agominor edits to recent fix for addons
Campbell Barton [Fri, 23 Sep 2011 13:47:29 +0000 (13:47 +0000)]
minor edits to recent fix for addons

8 years ago* Some more fixes for recent move operator commit.
Thomas Dinges [Fri, 23 Sep 2011 13:29:28 +0000 (13:29 +0000)]
* Some more fixes for recent move operator commit.

8 years agoFix fluid openMP not baking with some threadcounts
Jens Verwiebe [Fri, 23 Sep 2011 09:26:03 +0000 (09:26 +0000)]
Fix fluid openMP not baking with some threadcounts

9 years agoMinor: Other UI strings typos and tweaks. Also updated french po & mo.
Bastien Montagne [Fri, 23 Sep 2011 08:33:32 +0000 (08:33 +0000)]
Minor: Other UI strings typos and tweaks. Also updated french po & mo.

9 years ago* Fix for the Operator move commit, missed includes.
Thomas Dinges [Fri, 23 Sep 2011 05:20:15 +0000 (05:20 +0000)]
* Fix for the Operator move commit, missed includes.
* import os at the beginning of file

9 years agoremove bl_operators/, move bake_action function into bpy_extras.anim_utils...
Campbell Barton [Thu, 22 Sep 2011 22:51:54 +0000 (22:51 +0000)]
remove bl_operators/, move bake_action function into bpy_extras.anim_utils and bake operator into bl_operators/

9 years agoSVN maintenance.
Guillermo S. Romero [Thu, 22 Sep 2011 20:37:22 +0000 (20:37 +0000)]
SVN maintenance.

9 years ago2.6 Python UI files:
Thomas Dinges [Thu, 22 Sep 2011 19:50:41 +0000 (19:50 +0000)]
2.6 Python UI files:
* Moved Operators from bl_ui into bl_operators.
* Renamed HELP_OT_operator_cheat_sheet to WM_OT_operator_cheat_sheet.

9 years agoremove redundant code & use GL_LINE_STRIP for object spiral drawing.
Campbell Barton [Thu, 22 Sep 2011 18:42:16 +0000 (18:42 +0000)]
remove redundant code & use GL_LINE_STRIP for object spiral drawing.

9 years agoRemove checks for voxel data when texture type is known.
Sergey Sharybin [Thu, 22 Sep 2011 17:52:27 +0000 (17:52 +0000)]
Remove checks for voxel data when texture type is known.

9 years agoCorrected fix for #28722: Segfault when reading volumetric clouds example
Sergey Sharybin [Thu, 22 Sep 2011 17:52:21 +0000 (17:52 +0000)]
Corrected fix for #28722: Segfault when reading volumetric clouds example

Looks like with current implementation voxeldata should always be created
for voxel textures. Remove recently added NULL check and allocate
voxel data when linking a texture.

9 years agoFix #28226: Selection highlighting is wrong when Solidify Modifier is used
Sergey Sharybin [Thu, 22 Sep 2011 16:57:16 +0000 (16:57 +0000)]
Fix #28226: Selection highlighting is wrong when Solidify Modifier is used

Set origindices for edges/faces created for rim to ORIGINDEX_NONE.
Also discovered error in recent editmode VBO fix -- it used to crash
when comparing faces with ORIGINDEX_NONE original index.

9 years agoFix #28722: Segfault when reading volumetric clouds example
Sergey Sharybin [Thu, 22 Sep 2011 16:28:38 +0000 (16:28 +0000)]
Fix #28722: Segfault when reading volumetric clouds example

Added checking for voxel data isn't NULL.

9 years agoFix #28549: file browser recent directories could include directory that
Brecht Van Lommel [Thu, 22 Sep 2011 15:46:43 +0000 (15:46 +0000)]
Fix #28549: file browser recent directories could include directory that
doesn't exist after cancelling make directory. Patch by Sergey.

9 years agoFix rest of #28693: Proportional edit hangs on mesh object with high scale
Sergey Sharybin [Thu, 22 Sep 2011 15:46:34 +0000 (15:46 +0000)]
Fix rest of #28693: Proportional edit hangs on mesh object with high scale

Patchy by Juha Maki-Kanto

9 years agoFix warnings about operator descriptions ending with "."
Brecht Van Lommel [Thu, 22 Sep 2011 15:44:35 +0000 (15:44 +0000)]
Fix warnings about operator descriptions ending with "."

9 years agoFix #28489: Wacom Intuos 4 tablet doesn't work with outliner
Sergey Sharybin [Thu, 22 Sep 2011 15:39:31 +0000 (15:39 +0000)]
Fix #28489: Wacom Intuos 4 tablet doesn't work with outliner

Stylus can produce slight movements when it touches tablet,
so CLICK event wasn't triggering. Do not store INBETWEEN_MOUSE
as previous event to make CLICK events triggered correct.

Thanks to Brecht to pointing on short way to fix this problem.

9 years agoFix #28365: some macro operators were missing descriptions.
Brecht Van Lommel [Thu, 22 Sep 2011 15:35:25 +0000 (15:35 +0000)]
Fix #28365: some macro operators were missing descriptions.

9 years agoFix #28593: F6 operator redo could crash when editing buttons that use unit
Brecht Van Lommel [Thu, 22 Sep 2011 14:55:39 +0000 (14:55 +0000)]
Fix #28593: F6 operator redo could crash when editing buttons that use unit
settings, these could get freed with the scene on undo/redo, make a copy now.

9 years agoclear up some warnings.
Campbell Barton [Thu, 22 Sep 2011 14:42:29 +0000 (14:42 +0000)]
clear up some warnings.

9 years agoFix #28651: dopesheet crash when configuring keymap to use translate tool.
Brecht Van Lommel [Thu, 22 Sep 2011 14:29:15 +0000 (14:29 +0000)]
Fix #28651: dopesheet crash when configuring keymap to use translate tool.
This doesn't work, needs to be time translate, but we can avoid the crash.

9 years agoFix #28585: read full sample layers not working in compositor.
Brecht Van Lommel [Thu, 22 Sep 2011 12:45:25 +0000 (12:45 +0000)]
Fix #28585: read full sample layers not working in compositor.

9 years agoFix #28695: path/beziercirlce defined surface dissapears when deleting subdv of path...
Sergey Sharybin [Thu, 22 Sep 2011 12:07:02 +0000 (12:07 +0000)]
Fix #28695: path/beziercirlce defined surface dissapears when deleting subdv of path until toggling end point option

Clamp order when deleting points from nurb curve.
Also fixed incorrect free caused by non-initialized knots array
when deleting segment from non-cyclic nurb.

9 years agoMinor: Bah, doxygen file's doc comments were also missing from warp and navmesh modif...
Bastien Montagne [Thu, 22 Sep 2011 12:00:24 +0000 (12:00 +0000)]
Minor: Bah, doxygen file's doc comments were also missing from warp and navmesh modifiers...

9 years agoMinor: Added doxygen file's doc comments in weightvg modifiers.
Bastien Montagne [Thu, 22 Sep 2011 11:52:42 +0000 (11:52 +0000)]
Minor: Added doxygen file's doc comments in weightvg modifiers.

9 years agoMinor: Other UI strings typos and tweaks.
Bastien Montagne [Thu, 22 Sep 2011 11:16:04 +0000 (11:16 +0000)]
Minor: Other UI strings typos and tweaks.

9 years agocorrection for removal of _("")
Campbell Barton [Thu, 22 Sep 2011 07:01:28 +0000 (07:01 +0000)]
correction for removal of _("")

9 years agoaddendum to prev bugfix on texture space bump
Morten Mikkelsen [Thu, 22 Sep 2011 05:36:52 +0000 (05:36 +0000)]
addendum to prev bugfix on texture space bump

9 years agouse bli math functions for vgroup_fix operator.
Campbell Barton [Thu, 22 Sep 2011 05:05:26 +0000 (05:05 +0000)]
use bli math functions for vgroup_fix operator.

9 years agouse the systems number of processes for running static checks - multiple jobs.
Campbell Barton [Thu, 22 Sep 2011 04:41:12 +0000 (04:41 +0000)]
use the systems number of processes for running static checks - multiple jobs.

9 years agocomment some unused vars / assignments.
Campbell Barton [Thu, 22 Sep 2011 03:14:50 +0000 (03:14 +0000)]
comment some unused vars / assignments.

9 years agocorrect fix for armature selection, also remove international define from generic...
Campbell Barton [Thu, 22 Sep 2011 02:33:58 +0000 (02:33 +0000)]
correct fix for armature selection, also remove international define from generic python C funcs.

9 years agoOne of the two latest commits in this file broke the multi-bone selection in pose...
Bastien Montagne [Wed, 21 Sep 2011 21:17:38 +0000 (21:17 +0000)]
One of the two latest commits in this file broke the multi-bone selection in pose mode (shift-selection)...

9 years agobuildbot: point python to a symbolic link. Helps when updating libs is happening.
Sergey Sharybin [Wed, 21 Sep 2011 19:10:06 +0000 (19:10 +0000)]
buildbot: point python to a symbolic link. Helps when updating libs is happening.

9 years agoAdded misses INTERNATIONAL definition in scons rules.
Sergey Sharybin [Wed, 21 Sep 2011 18:05:01 +0000 (18:05 +0000)]
Added misses INTERNATIONAL definition in scons rules.

9 years agocheck that descriptions dont end with a '.', for non release builds.
Campbell Barton [Wed, 21 Sep 2011 17:52:51 +0000 (17:52 +0000)]
check that descriptions dont end with a '.', for non release builds.
this is annoying for translators so rather then correct along the way which gives merge conflicts for branches - print a complaint message.

9 years agoMinor: Other UI strings typos and tweaks.
Bastien Montagne [Wed, 21 Sep 2011 17:31:16 +0000 (17:31 +0000)]
Minor: Other UI strings typos and tweaks.

9 years agoremove blf.gettext, add blf.unload(font)
Campbell Barton [Wed, 21 Sep 2011 16:06:47 +0000 (16:06 +0000)]
remove blf.gettext, add blf.unload(font)

9 years agoremove use of gettext: _("...") style translation now its handled by rna.
Campbell Barton [Wed, 21 Sep 2011 15:18:38 +0000 (15:18 +0000)]
remove use of gettext: _("...") style translation now its handled by rna.

9 years agoTranslation: reload font on enabling/disabling use international fonts.
Brecht Van Lommel [Wed, 21 Sep 2011 15:15:30 +0000 (15:15 +0000)]
Translation: reload font on enabling/disabling use international fonts.

9 years agoBlenfont: add BLF_unload function to unload/reload fonts.
Brecht Van Lommel [Wed, 21 Sep 2011 15:14:47 +0000 (15:14 +0000)]
Blenfont: add BLF_unload function to unload/reload fonts.

9 years agoAttempt to fix #28709: change language to simplified Chinese: sequencer -> add image...
Sergey Sharybin [Wed, 21 Sep 2011 15:07:19 +0000 (15:07 +0000)]
Attempt to fix #28709: change language to simplified Chinese: sequencer -> add image strip crashes Blender

Crash was caused by sprintf which tried to parse bytes sequence belongs to chinese letter.
Using codepage 1252 for LC_ALL seems to fix this issue, but needs further testing.

9 years agoadd missing define for last commit and tag bl_label & bl_descriptions for translating too
Campbell Barton [Wed, 21 Sep 2011 14:10:26 +0000 (14:10 +0000)]
add missing define for last commit and tag bl_label & bl_descriptions for translating too

9 years agopy/rna string subtypes for strings which should be automatically translated:
Campbell Barton [Wed, 21 Sep 2011 13:53:35 +0000 (13:53 +0000)]
py/rna string subtypes for strings which should be automatically translated:

  layout.prop("blah", text="Translate Me!")

9 years agoFix compilation for MinGW.
Antony Riakiotakis [Wed, 21 Sep 2011 13:30:52 +0000 (13:30 +0000)]
Fix compilation for MinGW.

9 years now extracts strings from UI files, eg:
Campbell Barton [Wed, 21 Sep 2011 13:16:42 +0000 (13:16 +0000)] now extracts strings from UI files, eg:

  layout.prop("some_prop", text="Some Other Name")

So the text argument can be listed for translation.

9 years agoTweak for unifont: use droid with glyphs from default bfont.
Sergey Sharybin [Wed, 21 Sep 2011 13:04:58 +0000 (13:04 +0000)]
Tweak for unifont: use droid with glyphs from default bfont.

Would make interface look like it used to be before garlic merge until
we're working on making font configurable.

9 years agoupdates to rna message extractor, write utf8 files and use a set rather than a dict
Campbell Barton [Wed, 21 Sep 2011 12:23:23 +0000 (12:23 +0000)]
updates to rna message extractor, write utf8 files and use a set rather than a dict

9 years agoRevreting 39792 making paste pose only on selected bones by default.
Bastien Montagne [Wed, 21 Sep 2011 10:24:53 +0000 (10:24 +0000)]
Revreting 39792 making paste pose only on selected bones by default.
Will contact aligorith anyway for confirmation.

9 years agoremove support for irix
Campbell Barton [Wed, 21 Sep 2011 08:40:30 +0000 (08:40 +0000)]
remove support for irix

9 years agofix breakage in 40417 - test compile please even for doc changes.
Campbell Barton [Wed, 21 Sep 2011 08:35:07 +0000 (08:35 +0000)]
fix breakage in 40417 - test compile please even for doc changes.

9 years agoMinor: Other UI strings typos and tweaks.
Bastien Montagne [Wed, 21 Sep 2011 08:02:26 +0000 (08:02 +0000)]
Minor: Other UI strings typos and tweaks.

9 years agoSVN maintenance.
Guillermo S. Romero [Tue, 20 Sep 2011 21:22:19 +0000 (21:22 +0000)]
SVN maintenance.

9 years agopep8 update & some minor cmake edits.
Campbell Barton [Tue, 20 Sep 2011 18:29:19 +0000 (18:29 +0000)]
pep8 update & some minor cmake edits.

9 years agomove message.txt generator out of (which was loaded with blender always), into...
Campbell Barton [Tue, 20 Sep 2011 17:44:45 +0000 (17:44 +0000)]
move message.txt generator out of (which was loaded with blender always), into it own py script which runs on its own, also added this to 'make translations' target.

9 years agoReserved modifier enum for Dynamic Paint to not break save files again.
Miika Hamalainen [Tue, 20 Sep 2011 17:30:54 +0000 (17:30 +0000)]
Reserved modifier enum for Dynamic Paint to not break save files again.

9 years agoAnother set of fixes for MSVC
Sergey Sharybin [Tue, 20 Sep 2011 17:23:52 +0000 (17:23 +0000)]
Another set of fixes for MSVC

9 years ago- translation scripts now run with py3.x
Campbell Barton [Tue, 20 Sep 2011 17:07:33 +0000 (17:07 +0000)]
- translation scripts now run with py3.x
- added convenience make target 'make translations'
- some MEM_malloc strings were not unique enough, expanded them.

9 years agoFix for recent commit:
Sergey Sharybin [Tue, 20 Sep 2011 17:06:17 +0000 (17:06 +0000)]
Fix for recent commit:
- Some declarations after statement left.
- Do not use static inline functions in MOD_navmesh. It produces errors
  with msvc and not sure it's actually helps -- optimizer should
  make it inlined itself.

9 years agoGet rid of c++ in blenkernel and modifiers
Sergey Sharybin [Tue, 20 Sep 2011 16:24:50 +0000 (16:24 +0000)]
Get rid of c++ in blenkernel and modifiers
Also use guarded allocations for navmesh stuff.

9 years agoInternationalization: fix OS X scons install to copy font and language files
Brecht Van Lommel [Tue, 20 Sep 2011 15:55:28 +0000 (15:55 +0000)]
Internationalization: fix OS X scons install to copy font and language files

9 years agoSVN maintenance.
Guillermo S. Romero [Tue, 20 Sep 2011 15:30:18 +0000 (15:30 +0000)]
SVN maintenance.

9 years ago(no commit message)
Campbell Barton [Tue, 20 Sep 2011 15:17:24 +0000 (15:17 +0000)]

9 years agohave blf.gettext even when internationalization is disabled (just passes through).
Campbell Barton [Tue, 20 Sep 2011 15:11:17 +0000 (15:11 +0000)]
have blf.gettext even when internationalization is disabled (just passes through).

9 years agoFix for BLI_ungzip_to_mem: it'll return NULL now if file is not found.
Sergey Sharybin [Tue, 20 Sep 2011 14:49:12 +0000 (14:49 +0000)]
Fix for BLI_ungzip_to_mem: it'll return NULL now if file is not found.

It makes default bfont used if unifont isn't found. Useful for install-less
launch when debugging.

9 years agoIgnore .Blanguages and .bfont.ttf when installing.
Sergey Sharybin [Tue, 20 Sep 2011 14:41:01 +0000 (14:41 +0000)]
Ignore .Blanguages and .bfont.ttf when installing.
This files aren't used by blender anymore but they leads to
portable install when using scons.

9 years agoWe are now in Bcon 3 - Beta.
Thomas Dinges [Tue, 20 Sep 2011 14:28:54 +0000 (14:28 +0000)]
We are now in Bcon 3 - Beta.

9 years ago- Fix for compiling without international support
Sergey Sharybin [Tue, 20 Sep 2011 14:07:40 +0000 (14:07 +0000)]
- Fix for compiling without international support
- Enable international support for win64 msvc by default

9 years agoImproved Internationalization and Localization
Sergey Sharybin [Tue, 20 Sep 2011 13:41:43 +0000 (13:41 +0000)]
Improved Internationalization and Localization

Commiting GSoC project by Xiangquan Xiao trunk.

Applied as separated patch, because svn merge produces to much false
conflicts and worked really slow.

Details for usage would be published on soon.

Thanks to Xiao for implementation of project, Campbell to code review,
Dalai and Gez for pointing to nice font and everybody else who took
part in improving i18n support.

9 years agofix [#28672] Blender segfault after exiting a game that was opened with
Campbell Barton [Tue, 20 Sep 2011 12:22:19 +0000 (12:22 +0000)]
fix [#28672] Blender segfault after exiting a game that was opened with
autoplay on (Blender, not blenderplayer)

blender now stops the sound system and free's its self on Pythons

9 years agoMerging r40366 through r40392 from trunk into soc-2011-garlic soc-2011-garlic
Sergey Sharybin [Tue, 20 Sep 2011 12:01:16 +0000 (12:01 +0000)]
Merging r40366 through r40392 from trunk into soc-2011-garlic

9 years agocommitted change to transforms THRESHOLD by accident, also update convenience makefil...
Campbell Barton [Tue, 20 Sep 2011 10:15:57 +0000 (10:15 +0000)]
committed change to transforms THRESHOLD by accident, also update convenience makefile to regenerate real makefiles before static checking.

9 years agoi18n: some fixes for windows, scons and game engine
Sergey Sharybin [Tue, 20 Sep 2011 09:32:14 +0000 (09:32 +0000)]
i18n: some fixes for windows, scons and game engine

9 years agotag & comment unused vars with /* UNUSED */
Campbell Barton [Tue, 20 Sep 2011 08:48:48 +0000 (08:48 +0000)]
tag & comment unused vars with /* UNUSED */

9 years agoi18n: fake_gettext is no longer needed for python
Sergey Sharybin [Tue, 20 Sep 2011 08:38:16 +0000 (08:38 +0000)]
i18n: fake_gettext is no longer needed for python

9 years agoi18n: forgot this files in recent commit
Sergey Sharybin [Tue, 20 Sep 2011 08:17:26 +0000 (08:17 +0000)]
i18n: forgot this files in recent commit

9 years agoMinor: Other UI strings typos and tweaks.
Bastien Montagne [Tue, 20 Sep 2011 07:56:58 +0000 (07:56 +0000)]
Minor: Other UI strings typos and tweaks.

9 years agoDon't set BF_NUMJOBS in default config, but instead let users do that in
Nathan Letwory [Tue, 20 Sep 2011 07:53:20 +0000 (07:53 +0000)]
Don't set BF_NUMJOBS in default config, but instead let users do that in

9 years agoi18n: replace some bit checks from U.transopts with utility functions UI_translate*
Sergey Sharybin [Tue, 20 Sep 2011 07:47:27 +0000 (07:47 +0000)]
i18n: replace some bit checks from U.transopts with utility functions UI_translate*

9 years agoi18n: code clean-up
Sergey Sharybin [Tue, 20 Sep 2011 07:39:25 +0000 (07:39 +0000)]
i18n: code clean-up

- Move all translation-related declarations to BLF_translation.h
- Reverted some changes to match trunk svn rev40365

9 years agofix from Juha Mäki-Kanto (kanttori), was calculating connectivity data when proportio...
Campbell Barton [Tue, 20 Sep 2011 06:47:43 +0000 (06:47 +0000)]
fix from Juha Mäki-Kanto (kanttori), was calculating connectivity data when proportional editmode was enabled, even if connectivity setting was off.

9 years agochanges for materials to treat them as shorts not int/chars (since they are stored...
Campbell Barton [Tue, 20 Sep 2011 06:25:15 +0000 (06:25 +0000)]
changes for materials to treat them as shorts not int/chars (since they are stored as shorts intermally)
- converting nurbs to mesh was casting the material to unsigned char.
- subsurf was casting to char, then int -> short in a loop.
- have material functions take & return shorts.

9 years agotexface - quick speedup
Dalai Felinto [Tue, 20 Sep 2011 05:45:54 +0000 (05:45 +0000)]
texface - quick speedup
I doubt this makes any difference but still, good practises are always good.

9 years agofix for bug in do_version_tface(), was assigning 'tf->mode' before tf was defined...
Campbell Barton [Tue, 20 Sep 2011 04:54:13 +0000 (04:54 +0000)]
fix for bug in do_version_tface(), was assigning 'tf->mode' before tf was defined, also comment unused var.

9 years agofix possible crasg in recent texface commit - material pointer could be used un-iniri...
Campbell Barton [Tue, 20 Sep 2011 04:45:01 +0000 (04:45 +0000)]
fix possible crasg in recent texface commit - material pointer could be used un-inirialized.

9 years agotidy up
Campbell Barton [Tue, 20 Sep 2011 04:38:59 +0000 (04:38 +0000)]
tidy up
- quiet some warnings
- set some functions static
- replace materialbyname with generic BLI_findstring call

9 years agomodify the python gettext function to pass through the original string when no transl...
Campbell Barton [Tue, 20 Sep 2011 02:25:57 +0000 (02:25 +0000)]
modify the python gettext function to pass through the original string when no translation is done, this means the cached info such as byte representation and hash will be kept.

9 years agofix for warnings after texface commit, also comment blender sphinx theme for api...
Campbell Barton [Tue, 20 Sep 2011 01:35:39 +0000 (01:35 +0000)]
fix for warnings after texface commit, also comment blender sphinx theme for api reference until we get an update for 'Naiad'

9 years agoTexFace to Material Settings big patch
Dalai Felinto [Mon, 19 Sep 2011 19:55:59 +0000 (19:55 +0000)]
TexFace to Material Settings big patch

The idea here is to move the texface options into the material panel.
For images with the change please visit:

1 - Some of the legacy problems 2.49 and 2.5x has with the texface system:
1.1) Shadow, Bilboard and Halo are mutual exclusive (in the code), yet you can
select a face to be more than one mode.
1.2) Sort only works for blend Alpha yet it's an option regardless of the
Transparency Blend you pick.
1.3) Shared doesn't affect anything in BGE.
1.4) ObColor only works for Text objects (old bitmap texts) when using Texture
Face Materials. (not address yet, I so far ignored obcolor)

2 - Notes:
2.1) Now "Use Face Textures" in material Option panel will work in Multitexture
even if there is no texture channel.

2.2) In FaceTexture mode it will use TexFace all the time, even if you don't
check the "Use Texture Face" option in the UI. It's a matter of decision, since
the code for either way is there. I decided by the solution that makes the
creation of a material fast - in this mode the user doesn't need to mess with
textures or this "Use Texture Face" option at all. I'm not strong in my opinion
here. But I think if we don't have this then what is the point of the Texture
Face mode?

2.3) I kept references for tface only when we need the image, UV or the tiling
setting. It should help later when/if we split the Image and UV layers from the
tface struct  (Campbell and Brecht proposal).

3 - Changes in a Nutshell:
3.1) "Texture Face" panel (in the Mesh/Object Data panel) no longer exists. Those settings are all part of the material properties, visible when Game Render is set.

3.2) "Texture Face" Shading mode (in the Render panel) is now called “Single Texture”, it needs a material for special settings (e.g. Billboard, Alpha Sort, …).

3.3) New options in the Material Panel
* Shadeless option in the Material panel is now supported for all three Shading modes.
* Physics is now toggleable, this is the old Collision option.
* Two Side (on) is now called Back Culling (off).
* Alpha Sort is one of the Alpha options, together (and mutually exclusive) to Alpha Blend, Alpha Clip, Add and Opaque (i.e. solid).
* Shadow, Billboard and Halo are grouped in the “Face Orientation” property.
* "Face Textures" and "Face Textures Alpha" (under Options) can be used for all but GLSL shading mode (to be supported in GLSL eventually).
* The backend in the game engine is still the same as before. The only changes are in the interface and in the way you need to think your materials. The bottomline is: It’s no longer possible to share materials between faces that do not share the same game properties.

4 - Acknowledgment:
Mike Pan for the design discussions, and testing along the whole development process.
Vitor Balbio for the first hands-on code with the interface changes. That helped me a lot to push me into work on that.
Benoit Bolsee and Brecht van Lommel for patch review (* no one reviewed the whole patch, or the latest iteractions, so I still hold liability for any problems).
Blender artists that gave feedback and helped testing the patch.

Patch review and original documentation can be found here: