Commit Graph

49420 Commits

Author SHA1 Message Date
Thomas Dinges
18f2cd74ab Cycles:
* Fix node tree identifier. MATERIAL > SHADER.
This fixes some of the node buttons not showing up after recent merge.
2011-09-17 15:27:52 +00:00
Antony Riakiotakis
18735b6312 Use GL_LINES instead of GL_LINE_LOOP for selected uv edge drawing, avoids an extra conditional and drawing an extra 0 size line per uv. 2011-09-17 15:17:12 +00:00
Antony Riakiotakis
0ed9f5cce7 Fix: Uv edges were incorrectly drawn as selected in uv vert select mode when a sole uv vert was selected. 2011-09-17 14:51:01 +00:00
Brecht Van Lommel
b5d1f7a073 Cycles: missed these files in merge commit. 2011-09-17 14:38:56 +00:00
Brecht Van Lommel
e53c4dae54 Recast/detour: fix some property enum identifiers to follow conventions. 2011-09-17 13:33:03 +00:00
Brecht Van Lommel
f4a9215d7c Cycles: svn merge -r39870:r40266 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Merging the node changes required a lot of conflict resolution, fixed the
issues I could find but if you want stability you might want to wait a bit
before updating.
2011-09-17 13:28:40 +00:00
Campbell Barton
17f0ff5f7f svn merge -r40279:40295 ^/trunk/blender 2011-09-17 13:15:38 +00:00
Brecht Van Lommel
3232102cb8 Nodes: fix nodes in groups not getting socket templates verified, and reserve
some socket flags for cycles to avoid conflicts.
2011-09-17 13:03:42 +00:00
Howard Trickey
fa206e2c72 Fix knife midpoint snapping when previous point was a vertex; also reduced snap radius to approximately match crosshairs. 2011-09-17 12:31:22 +00:00
Campbell Barton
4aa259c1ea fix for building after merge 2011-09-17 12:25:51 +00:00
Campbell Barton
100313db6e Speedup for font drawing, every letter was character was calling:
glGetIntegerv(GL_TEXTURE_2D_BINDING_EXT, &cur_tex);

... with shadow enabled glGetFloatv(GL_CURRENT_COLOR, color) was called twice per character as well.


Now only call glGetFloatv(GL_CURRENT_COLOR, ...) once per string and only when drawing with shadow or blur, texture bind is stored in the font.

Gives 8% overall FPS speedup when displaying heavy UI in my test.
2011-09-17 10:45:20 +00:00
Bastien Montagne
a99f2cd015 Minor: fixing other UI typos. 2011-09-17 10:44:16 +00:00
Campbell Barton
5810717895 remove redundant NULL check 2011-09-17 09:53:38 +00:00
Campbell Barton
d4898f9c40 use macros RAD2DEG & DEG2RAD rather then multiplying by 180.0/M_PI or M_PI/180.0 2011-09-17 09:43:51 +00:00
Bastien Montagne
18d59e2645 Minor: fixing an UI typo. 2011-09-17 09:15:30 +00:00
Campbell Barton
f3e182231d use const and array size in function definitions, no functional change. 2011-09-17 08:14:43 +00:00
Campbell Barton
ec4181701f correction to recent commit, wouldnt have given any troubles but was assigning the 4th component of a float[3]. 2011-09-17 07:28:19 +00:00
Campbell Barton
f2748bfdc3 more mini optimizations - don't call UI_ThemeColor 4 times per curve handle, instead get all colors at the start and index them when drawing curves in editmode.
also remove redundant NULL check.
2011-09-17 07:14:39 +00:00
Campbell Barton
5114320dc5 micro optimization for circle drawing.
- use vertex array for drawcircball()
- add circball_array_fill() and call from drawcircball().
- for object center's rather than drawing 2 circles, create the array and reuse it.
2011-09-17 06:18:35 +00:00
Campbell Barton
4aefbb77e4 use less confusing array syntax for circle drawing, no functional changes. 2011-09-17 05:35:55 +00:00
Campbell Barton
1ff373ef5b svn merge -r40166:40279 ^/trunk/blender 2011-09-17 04:59:14 +00:00
Mitchell Stokes
2636be0ac0 BGE Animations: Fixing some refcount issues with KX_Scene::m_animatedlist (fixes m_animatedlist crashes) and some whitespace issues with KX_GameObject::GetActionManager(). 2011-09-16 20:08:05 +00:00
Dalai Felinto
0241e12089 BGE fix: Font Objects not showing up in the dome mode
geez, who coded the font object? or even worse, who did the dome code?
Don't coders talk? tsc tsc ...

Now seriously, KX_KetsjiEngine::RenderFonts() could be moved to inside the KX_Scene class. It probably should (so I could call it from inside KX_Dome::RenderDomeFrame()). Not critical, so not changing it for now.
2011-09-16 18:23:57 +00:00
Bastien Montagne
b3928fe4fd WeightVG: added WeightVG icon for outliner (don’t know when that where lost...). 2011-09-16 16:05:45 +00:00
Andrew Wiggin
594b0298c7 A couple of trivial perf improvements:
-BMEMSET macro should cache the size of the memory block instead of reading each iteration
-Avoid tesselating the backup copy of the mesh used to restore after an error (unless there is actually an error)
2011-09-16 14:28:23 +00:00
Campbell Barton
d87fcb0760 - fix for memory leak in findFreeNavPolyIndex()
- also correct own script for running cppcheck.
2011-09-16 14:02:44 +00:00
Brecht Van Lommel
66b1dfae89 Cycles: tweaks to properties and nodes
* Passes renamed to samples
* Camera lens radius renamed to aperature size/blades/rotation
* Glass and fresnel nodes input is now index of refraction
* Glossy and velvet fresnel socket removed
* Mix/add closure node renamed to mix/add shader node
* Blend weight node added for shader mixing weights

There is some version patching code for reading existing files, but it's not
perfect, so shaders may work a bit different.
2011-09-16 13:14:02 +00:00
Sergey Sharybin
c912af36ca Fix #28663: All "unit" properties show a value of 0 (on WinXP&MinGW&scons)
Initially problem was caused by updated version of mingw-runtime which
changed behavior of snprintf and vsnprintf so %lf isn't anymore valid
for doubles.

According to manpages, %f is a correct format for snprintf for doubles.
2011-09-16 10:03:08 +00:00
Campbell Barton
8ca82cec46 correction for my fix for [#28668], would crash when there were no editbones. 2011-09-16 09:02:31 +00:00
Xiao Xiangquan
e07b807357 fix NULL check for getenv("LANGUAGE") 2011-09-16 08:32:46 +00:00
Campbell Barton
2222f536f8 use replace 0 with NULL for pointers, set some functions static
also fixed own errors in recent static check commit.
2011-09-16 08:20:21 +00:00
Campbell Barton
41fa456506 replace macros with math lib functions 2011-09-16 06:56:50 +00:00
Campbell Barton
0abe1911d5 - fix for access past the buffer size (paint / sculpt used some 2d vecs as 3d)
- remove redundant NULL checks on old code where it would crash if the result was NULL later on.
- add some missing NULL checks.
2011-09-16 06:47:01 +00:00
Andrew Wiggin
672a608347 Make split tool use splitop (instead of dupe & del). Fix split op output. 2011-09-16 05:21:24 +00:00
Andrew Wiggin
a9e34852a9 Fix for face-snapping to faces in the same mesh 2011-09-16 04:28:38 +00:00
Andrew Wiggin
44b9dae85f Fix mirror modifier for mirroring relative to another object 2011-09-16 04:14:46 +00:00
Campbell Barton
862aababb3 - remove deprecated pose channel members
- change short -> char for flags that support it.
- add pose 'temp' pointer to use for outliner drawing (was using 'prev' and restoring which seems dodjy)
2011-09-16 02:42:50 +00:00
Campbell Barton
a6c15d6199 fix [#28668] Crashes entering edit mode on Armature 2011-09-16 02:08:00 +00:00
Bastien Montagne
84966d864b WeightVG: Made Edit and Proximity also use the new weightvg_update_vg MDeformWeight** parameter (to avoid another vgroup searching).
Also added to Proximity a check in case vgroup would have no vertices in it.
Plus a few minor edits...
2011-09-15 17:28:18 +00:00
Xiao Xiangquan
4212d2ecb5 Add Nepali translation 2011-09-15 16:51:55 +00:00
Guillermo S. Romero
d7160d082f SVN maintenance. 2011-09-15 16:37:36 +00:00
Campbell Barton
e2818f1b92 - include enum names and descriptions in sphinx generated documentation
- add descriptions for operator bl_options
2011-09-15 16:15:24 +00:00
Brecht Van Lommel
5f13b52c67 Cycles: fix preview render in 3d view not working on OS X. 2011-09-15 16:09:42 +00:00
Bastien Montagne
2f50579d9a WeightVG utils, weightvg_update_vg func updates.
* Added an optional array of MDeformModifier pointers, to avoid another search based on defgrp_idx.
* Split out "add/remove verts from vgroup" functions, preparing their move to deform.c (if their current form is validated!).
2011-09-15 16:06:00 +00:00
Sergey Sharybin
41e5040e2f Use static context trick for all platforms.
Should be safe until modifier stack is not threaded.
Solves issues with mingw and older glibc version (like used in release environment).
2011-09-15 15:29:40 +00:00
Bastien Montagne
f8af915b51 WeightVG Mix modifier: updated code to use defgrp_find_index, and make MDeformWeights be searched only once.
Also fixed a bug: when another set mode than "All Vertices" was used and resulting set of verts was empty, all vertices was used, instead of just returning org, unmodified data!
2011-09-15 14:48:50 +00:00
Sergey Sharybin
85c6758406 Adding missed notifier. 2011-09-15 13:44:25 +00:00
Sergey Sharybin
0eda51f2ea Fixing issues with i18n stuff:
- Make gettext stuff draw-time. so switching between languages
  can happens without restart now.
- Added option to translate visible interface (menus, buttons, labels)
  and tooltips. Now it's possible to have english UI and localized tooltips.
- Clean-up sources, do not use gettext stuff for things which can be
  collected with RNA.
- Fix issues with windows 64bit and ru_RU locale on my desktop
  (it was codepage issue).
- Added operator "Get Messages" which generates new text block with
  with all strings collected from RNA.
- Changed script for updating blender.pot so now it appends
  messages collected from rna to automatically gathered messages.
  To update .pot you have to re-generate messages.txt using "Get Messages"
  operator and then run update_pot script.
- Clean up old translation stuff which wasn't used and most probably
  wouldn't be used.
- Return back "International Fonts" option, so if it's disabled, no
  gettext lookups happens on draw.
- Merged read_homefile function back. No need in splitting it.

TODO:
- Custom fonts and font size.
  Current font isn't nice at least for russian locale, it's
  difficult to read it.
- Put references to messages.txt so gettext can merge translation when
  name/description of some property changes.
2011-09-15 13:20:18 +00:00
Sergey Sharybin
e45b8ab76e - Whitespace fixes (was commiting from windows where text editor wasn't configured, pardon)
- Fixing typo in description of GP paint mode.
2011-09-15 13:14:46 +00:00
Sergey Sharybin
30293dc2ca svn merge -r39834:40222 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2011-09-15 13:02:37 +00:00