10 years agosvn merge ^/trunk/blender -r40382:r40389
Campbell Barton [Fri, 23 Sep 2011 06:43:06 +0000 (06:43 +0000)]
svn merge ^/trunk/blender -r40382:r40389

10 years agosvn merge ^/trunk/blender -r40381:40382
Campbell Barton [Fri, 23 Sep 2011 06:35:49 +0000 (06:35 +0000)]
svn merge ^/trunk/blender -r40381:40382

10 years agosvn merge ^/trunk/blender -r40379:40381
Campbell Barton [Fri, 23 Sep 2011 06:31:36 +0000 (06:31 +0000)]
svn merge ^/trunk/blender -r40379:40381

10 years agosvn merge ^/trunk/blender -r40372:40379
Campbell Barton [Fri, 23 Sep 2011 06:18:03 +0000 (06:18 +0000)]
svn merge ^/trunk/blender -r40372:40379

10 years agosvn merge ^/trunk/blender -r40371:40372
Campbell Barton [Fri, 23 Sep 2011 05:59:37 +0000 (05:59 +0000)]
svn merge ^/trunk/blender -r40371:40372

10 years agosvn merge ^/trunk/blender -r40370:40371
Campbell Barton [Thu, 22 Sep 2011 16:30:33 +0000 (16:30 +0000)]
svn merge ^/trunk/blender -r40370:40371

10 years agosvn merge ^/trunk/blender -r40368:40370
Campbell Barton [Thu, 22 Sep 2011 16:17:27 +0000 (16:17 +0000)]
svn merge ^/trunk/blender -r40368:40370

10 years agosvn merge ^/trunk/blender -r40367:40368 --- raddish weight paint merge
Campbell Barton [Thu, 22 Sep 2011 16:09:27 +0000 (16:09 +0000)]
svn merge ^/trunk/blender -r40367:40368  --- raddish weight paint merge

10 years agodisable game engine by default until navmesh is working.
Campbell Barton [Thu, 22 Sep 2011 15:29:48 +0000 (15:29 +0000)]
disable game engine by default until navmesh is working.

10 years agoNormal math improvements and vector math cleanup
Andrew Wiggin [Thu, 22 Sep 2011 12:31:01 +0000 (12:31 +0000)]
Normal math improvements and vector math cleanup

10 years agosvn merge -r40295:40367 ^/trunk/blender
Campbell Barton [Wed, 21 Sep 2011 17:15:54 +0000 (17:15 +0000)]
svn merge -r40295:40367 ^/trunk/blender

10 years agoFix rip tool issues related to BM_Make_Ngon generating a copy of an original face...
Andrew Wiggin [Wed, 21 Sep 2011 15:38:34 +0000 (15:38 +0000)]
Fix rip tool issues related to BM_Make_Ngon generating a copy of an original face with a face loop cycle starting on a different loop.

10 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.

10 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

10 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.

10 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.

10 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.

10 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.

10 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.

10 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

10 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'

10 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:

10 years agostyle changes & use faster looping on vertex weights, also loop on face verts in...
Campbell Barton [Mon, 19 Sep 2011 17:53:37 +0000 (17:53 +0000)]
style changes & use faster looping on vertex weights, also loop on face verts in more places rather then having code for 3-4 verts.

10 years agoSVN maintenance.
Guillermo S. Romero [Mon, 19 Sep 2011 17:27:33 +0000 (17:27 +0000)]
SVN maintenance.

10 years agoremove unused arg & some style edits on radish merge, also reverted odd change that...
Campbell Barton [Mon, 19 Sep 2011 16:41:29 +0000 (16:41 +0000)]
remove unused arg & some style edits on radish merge, also reverted odd change that somehow got in to cmake preset.

10 years agoMerging radish branch into trunk.
Jason Hays [Mon, 19 Sep 2011 16:13:34 +0000 (16:13 +0000)]
Merging radish branch into trunk.

10 years agoMerged 40338-40364 soc-2011-radish
Jason Hays [Mon, 19 Sep 2011 15:36:30 +0000 (15:36 +0000)]
Merged 40338-40364

10 years agoattempt to fix windows/scons issue I caused in a recent commit.
Campbell Barton [Mon, 19 Sep 2011 15:18:58 +0000 (15:18 +0000)]
attempt to fix windows/scons issue I caused in a recent commit.

10 years agoedits to argument parsing for Euler.rotate_axis, also corrected some exception messag...
Campbell Barton [Mon, 19 Sep 2011 15:13:16 +0000 (15:13 +0000)]
edits to argument parsing for Euler.rotate_axis, also corrected some exception messages and minor style edits.

10 years agovgroup_validmap needed to be assigned when locks were active.
Jason Hays [Mon, 19 Sep 2011 15:11:01 +0000 (15:11 +0000)]
vgroup_validmap needed to be assigned when locks were active.

10 years agoadd back mathutils Matrix() * Vector(), this is row_vector multiplication.
Campbell Barton [Mon, 19 Sep 2011 14:29:21 +0000 (14:29 +0000)]
add back mathutils Matrix() * Vector(), this is row_vector multiplication.
some minor changes to exception messages.

10 years agoBlenfont: fix use incorrect clear of ascii glyph cache, leading to crash
Brecht Van Lommel [Mon, 19 Sep 2011 14:09:13 +0000 (14:09 +0000)]
Blenfont: fix use incorrect clear of ascii glyph cache, leading to crash
when toggling use antialising user preference. Also fix some other use of
uninitialized memory found by valgrind.

10 years ago/release/scripts: Removed final points in UI strings and messages.
Bastien Montagne [Mon, 19 Sep 2011 14:00:42 +0000 (14:00 +0000)]
/release/scripts: Removed final points in UI strings and messages.

10 years ago/blender/makesrna: Removed final points in UI strings and messages.
Bastien Montagne [Mon, 19 Sep 2011 13:23:58 +0000 (13:23 +0000)]
/blender/makesrna: Removed final points in UI strings and messages.
Plus a few splits of very long lines…

10 years agoSequencer: switching to preview mode works fine again
Sergey Sharybin [Mon, 19 Sep 2011 13:12:54 +0000 (13:12 +0000)]
Sequencer: switching to preview mode works fine again

10 years agoMove function out of mathutils to: BLI_math_rotation --- single_axis_angle_to_mat3...
Campbell Barton [Mon, 19 Sep 2011 13:08:01 +0000 (13:08 +0000)]
Move function out of mathutils to: BLI_math_rotation --- single_axis_angle_to_mat3(mat3, axis, angle), copied out from mathutils, axis arg is a char 'X/Y/Z' rather then a vector like axis_angle_to_mat3().

10 years ago/blender/editors: Removed final points in UI strings and messages.
Bastien Montagne [Mon, 19 Sep 2011 12:26:20 +0000 (12:26 +0000)]
/blender/editors: Removed final points in UI strings and messages.
Plus a few cuts in very long lines…

10 years agoremove Buffer.list, deprecated before 2.59 release.
Campbell Barton [Mon, 19 Sep 2011 11:55:45 +0000 (11:55 +0000)]
remove Buffer.list, deprecated before 2.59 release.

10 years agoCurve back/front fill changes:
Sergey Sharybin [Mon, 19 Sep 2011 09:47:58 +0000 (09:47 +0000)]
Curve back/front fill changes:

- Use enum instead of back/front flags combinations.
- This flags behaves differently for 2d/3d curves so use different enums for them.
- This commit shouldn't change existing files.

10 years agoFix for add hook/vertex parent for meshes
Sergey Sharybin [Mon, 19 Sep 2011 08:25:31 +0000 (08:25 +0000)]
Fix for add hook/vertex parent for meshes

The only way to achieve this is to re-load editMesh.
After this commit you can't iterate through vertices and insert
hooks/parents from script anymore -- this operators are now
treated as topology-changing and shouldn't be used when iterating
via geometries.

10 years agoreplace WORDS_BIGENDIAN with __BIG_ENDIAN__
Campbell Barton [Mon, 19 Sep 2011 08:11:30 +0000 (08:11 +0000)]

10 years agocleanup endian handling
Campbell Barton [Mon, 19 Sep 2011 08:02:17 +0000 (08:02 +0000)]
cleanup endian handling
- define __BIG_ENDIAN__ or __LITTLE_ENDIAN__ with cmake & scons.
- ENDIAN_ORDER is now a define rather than a global short.
- replace checks like this with single ifdef: #if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__hppa__) || defined (__BIG_ENDIAN__)
- remove BKE_endian.h which isn't used

10 years agoremove WITH_* defines from image formats, instead just dont build the files at all.
Campbell Barton [Mon, 19 Sep 2011 06:32:19 +0000 (06:32 +0000)]
remove WITH_* defines from image formats, instead just dont build the files at all.

10 years agosvn merge ^/trunk/blender -r40311:40338
Campbell Barton [Mon, 19 Sep 2011 05:58:52 +0000 (05:58 +0000)]
svn merge ^/trunk/blender -r40311:40338

10 years agoremove duplicate variable - wpaint_make_validmap(ob) was being called twice for...
Campbell Barton [Mon, 19 Sep 2011 05:06:21 +0000 (05:06 +0000)]
remove duplicate variable -  wpaint_make_validmap(ob) was being called twice for no good reason.

10 years agorefactor wpaint_stroke_update_step not to call expensive functions per-vertex and...
Campbell Barton [Mon, 19 Sep 2011 04:53:11 +0000 (04:53 +0000)]
refactor wpaint_stroke_update_step not to call expensive functions per-vertex and move args passed to do_weight_paint_vertex into WeightPaintInfo structure since there were far too many args to this function.

10 years agoedits to radish before merge with trunk
Campbell Barton [Mon, 19 Sep 2011 02:43:03 +0000 (02:43 +0000)]
edits to radish before merge with trunk

- removed some unused functions.
- renamed vars to make more sense paint_vertex.c 'flags' --> 'lock_flags'
- some odd modifications were made in unrealted, commented code, copy these back from trunk.
- rename vertex_group_fix 'cp' property to 'accuracy'
- make style more consistant with trunk.
- remove 'Radish' comments.

10 years agoSplit do_weight_paint_vertex() to isolate the simple case.
Jason Hays [Sun, 18 Sep 2011 17:10:28 +0000 (17:10 +0000)]
Split do_weight_paint_vertex() to isolate the simple case.

Added a tool-tip to the "fix deforms" op.

Removed code markers:

10 years agoupdate glew from 1.6 to 1.7:
Campbell Barton [Sun, 18 Sep 2011 15:37:36 +0000 (15:37 +0000)]
update glew from 1.6 to 1.7:

from their site:
  adds support for OpenGL 4.2, new extensions, fixes bugs

remove ChangeLog, its missing from the 1.7 bundle, also remove html doc dir.

10 years agoadd back object update function for auto-normalize too.
Campbell Barton [Sun, 18 Sep 2011 15:20:10 +0000 (15:20 +0000)]
add back object update function for auto-normalize too.

10 years agoallow multiple bones to be selected in weight paint mode in a less complicated way...
Campbell Barton [Sun, 18 Sep 2011 15:17:16 +0000 (15:17 +0000)]
allow multiple bones to be selected in weight paint mode in a less complicated way (allow Shift+RMB)

10 years agostyle changes only
Campbell Barton [Sun, 18 Sep 2011 14:54:41 +0000 (14:54 +0000)]
style changes only

10 years agoreplace malloc of a single DeformVertex with stack variable.
Campbell Barton [Sun, 18 Sep 2011 14:48:15 +0000 (14:48 +0000)]
replace malloc of a single DeformVertex with stack variable.

10 years agoadd back GPL2+ header to paint_utils.c, copied from editface.c since some of its...
Campbell Barton [Sun, 18 Sep 2011 12:16:03 +0000 (12:16 +0000)]
add back GPL2+ header to paint_utils.c, copied from editface.c since some of its functions trace back to that file from 2.4x. (imapaint_tri_weights for eg).

10 years agoadd old style nan GPL2+ header to sound.c since this file is from rev2 and should...
Campbell Barton [Sun, 18 Sep 2011 12:06:28 +0000 (12:06 +0000)]
add old style nan GPL2+ header to sound.c since this file is from rev2 and should have had this header added.

10 years agopatch [#28684] Image pack/unpack() implementation.
Campbell Barton [Sun, 18 Sep 2011 11:47:17 +0000 (11:47 +0000)]
patch [#28684] Image pack/unpack() implementation.
from Bill Currie (taniwha)

10 years agoreplace strnlen with BLI_strnlen & some style changes.
Campbell Barton [Sun, 18 Sep 2011 11:25:50 +0000 (11:25 +0000)]
replace strnlen with BLI_strnlen & some style changes.

10 years agofix for crash loading a file saved with fluidsim when blenders compiled with it disabled.
Campbell Barton [Sun, 18 Sep 2011 11:08:34 +0000 (11:08 +0000)]
fix for crash loading a file saved with fluidsim when blenders compiled with it disabled.
also remove unneed class prefix on function name for itasc.

10 years agoblf - further shrink drawing functions & some style changes.
Campbell Barton [Sun, 18 Sep 2011 10:34:13 +0000 (10:34 +0000)]
blf - further shrink drawing functions & some style changes.

10 years agoblf code - no functional changes.
Campbell Barton [Sun, 18 Sep 2011 09:48:09 +0000 (09:48 +0000)]
blf code - no functional changes.
- remove saniy checks from blf_font.c, the callers now check instead.
- move duplicate code into defines (may move into static functions).
- move kerning checks into const values set at the start of the function, rather then checking on every character.

10 years agoFix for [#28672] Blender segfault after exiting a game that was opened with autoplay...
Joerg Mueller [Sun, 18 Sep 2011 09:46:47 +0000 (09:46 +0000)]
Fix for [#28672] Blender segfault after exiting a game that was opened with autoplay on (Blender, not blenderplayer)

Autoplay misses uninitialisation, I'm just fixing the reported crash, it still misses all other frees, but as the program exits, we don't care?

10 years agoMinor: Other UI strings typos and tweaks.
Bastien Montagne [Sun, 18 Sep 2011 09:38:43 +0000 (09:38 +0000)]
Minor: Other UI strings typos and tweaks.

10 years agoChanged the branch code markers to say "Radish" in response to a review.
Jason Hays [Sun, 18 Sep 2011 03:49:00 +0000 (03:49 +0000)]
Changed the branch code markers to say "Radish" in response to a review.
They weren't & aren't meant to show ownership, they just help me navigate my related code.

10 years agoadded back scene/object update function, its needed for multipaint switching.
Campbell Barton [Sun, 18 Sep 2011 03:29:17 +0000 (03:29 +0000)]
added back scene/object update function, its needed for multipaint switching.

10 years agorename EM_backbuf_checkAndSelectTVerts to EM_backbuf_checkAndSelectVerts_obmode until...
Campbell Barton [Sun, 18 Sep 2011 02:46:03 +0000 (02:46 +0000)]
rename EM_backbuf_checkAndSelectTVerts to EM_backbuf_checkAndSelectVerts_obmode until we come up with a better name this one at least says its in object mode, also there is no such thing as a TVert.

10 years agosvn merge -r40197:40311 ^/trunk/blender
Campbell Barton [Sun, 18 Sep 2011 02:35:26 +0000 (02:35 +0000)]
svn merge -r40197:40311 ^/trunk/blender

10 years agoConsole Scrolling - reset while typing.
Campbell Barton [Sun, 18 Sep 2011 01:34:53 +0000 (01:34 +0000)]
Console Scrolling - reset while typing.
patch from Damir Prebeg with some edits.

Also made it so resizing the console view keeps the lower part of the text in view (could be annoying when you needed to scroll because of a resized view).

10 years agoI made multitude of fixes based on the comments provided online:
Jason Hays [Sun, 18 Sep 2011 01:09:18 +0000 (01:09 +0000)]
I made multitude of fixes based on the comments provided online:

Removed the drawSelectedVerts and added drawSelectedVertices, which uses dm->foreachMappedVert.

In calc_weightpaint_vert_color():
Made the weight paint color black and return instead of input=-1

Made the pose bone selection normal when multi-paint is inactive.

Name fix for functions using mv instead of mvert.

Used vector functions provided by the math lib.

Changed some MEM_callocN references to be stacks.

Changed dm_deform_clear to use ob->derivedDeform primarily

Made the variable "float **changes" into "float (*changes)[2]"

Used CTX_data_active_object() in place of CTX_data_pointer_get_type()

Added the invert selection hotkey "Ctrl+I" to weight paint's vertex mask.

10 years agoResurrect the conditional to avoid extra color state changes. Thanks Ender79 for...
Antony Riakiotakis [Sat, 17 Sep 2011 17:18:55 +0000 (17:18 +0000)]
Resurrect the conditional to avoid extra color state changes. Thanks Ender79 for the suggestion!

10 years agoimage button was hard coded to draw the splash screen which it loaded from PNG data...
Campbell Barton [Sat, 17 Sep 2011 16:57:37 +0000 (16:57 +0000)]
image button was hard coded to draw the splash screen which it loaded from PNG data on every draw.

now pass the ImBuf when callign the image button so we could have different images in buttons later on.

10 years agoUse GL_LINES instead of GL_LINE_LOOP for selected uv edge drawing, avoids an extra...
Antony Riakiotakis [Sat, 17 Sep 2011 15:17:12 +0000 (15:17 +0000)]
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.

10 years agoFix: Uv edges were incorrectly drawn as selected in uv vert select mode when a sole...
Antony Riakiotakis [Sat, 17 Sep 2011 14:51:01 +0000 (14:51 +0000)]
Fix: Uv edges were incorrectly drawn as selected in uv vert select mode when a sole uv vert was selected.

10 years agoRecast/detour: fix some property enum identifiers to follow conventions.
Brecht Van Lommel [Sat, 17 Sep 2011 13:33:03 +0000 (13:33 +0000)]
Recast/detour: fix some property enum identifiers to follow conventions.

10 years agosvn merge -r40279:40295 ^/trunk/blender
Campbell Barton [Sat, 17 Sep 2011 13:15:38 +0000 (13:15 +0000)]
svn merge -r40279:40295 ^/trunk/blender

10 years agoNodes: fix nodes in groups not getting socket templates verified, and reserve
Brecht Van Lommel [Sat, 17 Sep 2011 13:03:42 +0000 (13:03 +0000)]
Nodes: fix nodes in groups not getting socket templates verified, and reserve
some socket flags for cycles to avoid conflicts.

10 years agoFix knife midpoint snapping when previous point was a vertex; also reduced snap radiu...
Howard Trickey [Sat, 17 Sep 2011 12:31:22 +0000 (12:31 +0000)]
Fix knife midpoint snapping when previous point was a vertex; also reduced snap radius to approximately match crosshairs.

10 years agofix for building after merge
Campbell Barton [Sat, 17 Sep 2011 12:25:51 +0000 (12:25 +0000)]
fix for building after merge

10 years agoSpeedup for font drawing, every letter was character was calling:
Campbell Barton [Sat, 17 Sep 2011 10:45:20 +0000 (10:45 +0000)]
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.

10 years agoMinor: fixing other UI typos.
Bastien Montagne [Sat, 17 Sep 2011 10:44:16 +0000 (10:44 +0000)]
Minor: fixing other UI typos.

10 years agoremove redundant NULL check
Campbell Barton [Sat, 17 Sep 2011 09:53:38 +0000 (09:53 +0000)]
remove redundant NULL check

10 years agouse macros RAD2DEG & DEG2RAD rather then multiplying by 180.0/M_PI or M_PI/180.0
Campbell Barton [Sat, 17 Sep 2011 09:43:51 +0000 (09:43 +0000)]
use macros RAD2DEG & DEG2RAD rather then multiplying by 180.0/M_PI or M_PI/180.0

10 years agoMinor: fixing an UI typo.
Bastien Montagne [Sat, 17 Sep 2011 09:15:30 +0000 (09:15 +0000)]
Minor: fixing an UI typo.

10 years agouse const and array size in function definitions, no functional change.
Campbell Barton [Sat, 17 Sep 2011 08:14:43 +0000 (08:14 +0000)]
use const and array size in function definitions, no functional change.

10 years agocorrection to recent commit, wouldnt have given any troubles but was assigning the...
Campbell Barton [Sat, 17 Sep 2011 07:28:19 +0000 (07:28 +0000)]
correction to recent commit, wouldnt have given any troubles but was assigning the 4th component of a float[3].

10 years agomore mini optimizations - don't call UI_ThemeColor 4 times per curve handle, instead...
Campbell Barton [Sat, 17 Sep 2011 07:14:39 +0000 (07:14 +0000)]
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.

10 years agomicro optimization for circle drawing.
Campbell Barton [Sat, 17 Sep 2011 06:18:35 +0000 (06:18 +0000)]
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.

10 years agouse less confusing array syntax for circle drawing, no functional changes.
Campbell Barton [Sat, 17 Sep 2011 05:35:55 +0000 (05:35 +0000)]
use less confusing array syntax for circle drawing, no functional changes.

10 years agosvn merge -r40166:40279 ^/trunk/blender
Campbell Barton [Sat, 17 Sep 2011 04:59:14 +0000 (04:59 +0000)]
svn merge -r40166:40279 ^/trunk/blender

10 years agoBGE Animations: Fixing some refcount issues with KX_Scene::m_animatedlist (fixes...
Mitchell Stokes [Fri, 16 Sep 2011 20:08:05 +0000 (20:08 +0000)]
BGE Animations: Fixing some refcount issues with KX_Scene::m_animatedlist (fixes m_animatedlist crashes) and some whitespace issues with KX_GameObject::GetActionManager().

10 years agoBGE fix: Font Objects not showing up in the dome mode
Dalai Felinto [Fri, 16 Sep 2011 18:23:57 +0000 (18:23 +0000)]
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.

10 years agoSVN maintenance.
Guillermo S. Romero [Fri, 16 Sep 2011 17:18:12 +0000 (17:18 +0000)]
SVN maintenance.

10 years agoWeightVG: added WeightVG icon for outliner (don’t know when that where lost...).
Bastien Montagne [Fri, 16 Sep 2011 16:05:45 +0000 (16:05 +0000)]
WeightVG: added WeightVG icon for outliner (don’t know when that where lost...).

10 years agoA couple of trivial perf improvements:
Andrew Wiggin [Fri, 16 Sep 2011 14:28:23 +0000 (14:28 +0000)]
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)

10 years ago- fix for memory leak in findFreeNavPolyIndex()
Campbell Barton [Fri, 16 Sep 2011 14:02:44 +0000 (14:02 +0000)]
- fix for memory leak in findFreeNavPolyIndex()
- also correct own script for running cppcheck.

10 years agoFix #28663: All "unit" properties show a value of 0 (on WinXP&MinGW&scons)
Sergey Sharybin [Fri, 16 Sep 2011 10:03:08 +0000 (10:03 +0000)]
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.

10 years agocorrection for my fix for [#28668], would crash when there were no editbones.
Campbell Barton [Fri, 16 Sep 2011 09:02:31 +0000 (09:02 +0000)]
correction for my fix for [#28668], would crash when there were no editbones.

10 years agouse replace 0 with NULL for pointers, set some functions static
Campbell Barton [Fri, 16 Sep 2011 08:20:21 +0000 (08:20 +0000)]
use replace 0 with NULL for pointers, set some functions static
also fixed own errors in recent static check commit.

10 years agonew convenience makefile targets for static source code cheching: check_splint/check_...
Campbell Barton [Fri, 16 Sep 2011 06:58:20 +0000 (06:58 +0000)]
new convenience makefile targets for static source code cheching: check_splint/check_sparse/check_cppcheck

10 years agoreplace macros with math lib functions
Campbell Barton [Fri, 16 Sep 2011 06:56:50 +0000 (06:56 +0000)]
replace macros with math lib functions

10 years ago- fix for access past the buffer size (paint / sculpt used some 2d vecs as 3d)
Campbell Barton [Fri, 16 Sep 2011 06:47:01 +0000 (06:47 +0000)]
- 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.