blender.git
6 years agoColor Management: fixed color management-less texture rendering
Sergey Sharybin [Wed, 10 Oct 2012 05:56:49 +0000 (05:56 +0000)]
Color Management: fixed color management-less texture rendering

There was a missing check for whether color management enabled or not when
converting byte textures to linear space.

This commit also fixes wrong texture preview rendering, which was applying
sRGB transform twice, making procedural textures bright. This will make
float textures being previewed dark (in a linear space) but that's how it
used to behave in pre-OCIO color management.

6 years agouse __restrict for string functions args so the compiler can assume they dont overlap.
Campbell Barton [Wed, 10 Oct 2012 04:47:53 +0000 (04:47 +0000)]
use __restrict for string functions args so the compiler can assume they dont overlap.
also avoid comparing int/size_t in for loops.

6 years agorefactor foreachScreen functions for clipping, now the projection clipping flag is...
Campbell Barton [Wed, 10 Oct 2012 04:03:22 +0000 (04:03 +0000)]
refactor foreachScreen functions for clipping, now the projection clipping flag is passed down directly rather then converting the enum into a flag, also fix own recent crash lasso seleting in object mode with pose objects.

6 years agocode cleanup: split `foreach` object data iterator functions out of drawobject.c...
Campbell Barton [Wed, 10 Oct 2012 03:13:02 +0000 (03:13 +0000)]
code cleanup: split `foreach` object data iterator functions out of drawobject.c (since they are used for selection too), into their own file: object_iterators.c

6 years agoobject center selection now uses floats, also fix own error in circle selection in...
Campbell Barton [Wed, 10 Oct 2012 01:54:02 +0000 (01:54 +0000)]
object center selection now uses floats, also fix own error in circle selection in recent refactor.

6 years agorefactor screen foreach functions to accept float[2] arguments rather then int pairs.
Campbell Barton [Wed, 10 Oct 2012 01:22:19 +0000 (01:22 +0000)]
refactor screen foreach functions to accept float[2] arguments rather then int pairs.
overall means less converting between float and int (and short in some cases).

6 years agotransfer weight's now operates on selected vertices (when vertex select is enabled).
Campbell Barton [Tue, 9 Oct 2012 22:55:05 +0000 (22:55 +0000)]
transfer weight's now operates on selected vertices (when vertex select is enabled).

6 years agocode cleanup:
Antony Riakiotakis [Tue, 9 Oct 2012 18:56:02 +0000 (18:56 +0000)]
code cleanup:

Move smart stitch drawing code inside a draw callback and use
ED_region_draw_cb_activate instead of explicitly checking for this
specific operator in the main uv drawing function.

6 years agoCycles: camera motion blur enabled.
Brecht Van Lommel [Tue, 9 Oct 2012 18:37:14 +0000 (18:37 +0000)]
Cycles: camera motion blur enabled.

Still more work needed to get object motion blur ready.

6 years agoGeneralization of node dependency sorting, avoid using the sock->link pointer. This...
Lukas Toenne [Tue, 9 Oct 2012 17:30:33 +0000 (17:30 +0000)]
Generalization of node dependency sorting, avoid using the sock->link pointer. This pointer only works for sockets that follow the standard 1-to-n connectivity (an output can be linked to multiple inputs, an input can only have one connection). Future node trees may implement 1-to-1 or n-to-1 linking.

6 years agoFixed wrong preset settings for motion tracking
Sergey Sharybin [Tue, 9 Oct 2012 16:29:27 +0000 (16:29 +0000)]
Fixed wrong preset settings for motion tracking

6 years agoFix cycles task manager calling pthread_join() twice. I haven't seen any bugs
Brecht Van Lommel [Tue, 9 Oct 2012 14:28:29 +0000 (14:28 +0000)]
Fix cycles task manager calling pthread_join() twice. I haven't seen any bugs
from this but best to fix anyway as it causes undefined behavior. Pointed out
on irc by dslammu, thanks!

6 years agocode cleanup: make header defines more consistent, JOYSENSOR header guard had a typo...
Campbell Barton [Tue, 9 Oct 2012 13:36:42 +0000 (13:36 +0000)]
code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too.

6 years agoBugfix [#32703] elbeem's isSimworldOk() will never return FALSE
Daniel Genrich [Tue, 9 Oct 2012 13:09:03 +0000 (13:09 +0000)]
Bugfix [#32703] elbeem's isSimworldOk() will never return FALSE

Fixed as suggested by Campbell, thank you!

6 years agoBugfix [#32677] Cloth Pinning Does Not Obey Weight Map
Daniel Genrich [Tue, 9 Oct 2012 12:59:20 +0000 (12:59 +0000)]
Bugfix [#32677] Cloth Pinning Does Not Obey Weight Map

Problem occured when having more than one weight map available.

6 years agostyle cleanup: also made functions static
Campbell Barton [Tue, 9 Oct 2012 12:41:37 +0000 (12:41 +0000)]
style cleanup: also made functions static

6 years agoAdding weightpaint transfer tool.
Ove Murberg Henriksen [Tue, 9 Oct 2012 12:25:10 +0000 (12:25 +0000)]
Adding weightpaint transfer tool.
From: https://svn.blender.org/svnroot/bf-blender/branches/meshdata_transfer

Bachelor project at Narvik university collage (Norway).
By Ove M Henriksen (Cyborgmuppet)

Thesis will be published at Cyborgmuppets blender page.

Thanks for letting me participate!

6 years agoRevert part of 51209 -- MOUSEZOOM inversion should be done in lots of other
Sergey Sharybin [Tue, 9 Oct 2012 11:38:42 +0000 (11:38 +0000)]
Revert part of 51209 -- MOUSEZOOM inversion should be done in lots of other
places as well, but it's quite large change to be done before 'a' release.

For now ignore zoom inverse for 2d view to keep things consistent,
would be re-implemented for all areas after this.

6 years agoFix #32824: Color management configuration check was missed on file link/append
Sergey Sharybin [Tue, 9 Oct 2012 11:31:25 +0000 (11:31 +0000)]
Fix #32824: Color management configuration check was missed on file link/append

6 years agoFix based on code review Issue 6347064 meshdata_transfer
Ove Murberg Henriksen [Tue, 9 Oct 2012 11:29:29 +0000 (11:29 +0000)]
Fix based on code review Issue 6347064

6 years agopatch [#31919] limit the number of bone deform weights per vertex. Many game engines...
Campbell Barton [Tue, 9 Oct 2012 10:56:35 +0000 (10:56 +0000)]
patch [#31919] limit the number of bone deform weights per vertex. Many game engines require a limit of 4.
from Kesten Broughton (kestion)

Usage: In weight paint mode, select the mesh to have its weights culled. Click on "Limit Weights" button. A sub-panel will appear "Limit Number of Vertex Weights" with a slider field "Limit" which you can set to the appropriate level. The default level is 4, and it gets executed upon pressing "Limit Weights" so you will need to do an "undo" if your max bone limit is above 4. The checkbox "All Deform Weights" will consider all vertex weights, not just bone deform weights.

6 years agosvn merge ^/trunk/blender -r48592:HEAD
Ove Murberg Henriksen [Tue, 9 Oct 2012 10:53:20 +0000 (10:53 +0000)]
svn merge ^/trunk/blender -r48592:HEAD

6 years agoAutokey warning - trying with a slight "calmer" color
Joshua Leung [Tue, 9 Oct 2012 10:41:51 +0000 (10:41 +0000)]
Autokey warning - trying with a slight "calmer" color

Now it uses the same color used for indicating keyframes instead of using
"error" indications.

6 years agoAutokey warning - Only show for the active region
Joshua Leung [Tue, 9 Oct 2012 10:36:07 +0000 (10:36 +0000)]
Autokey warning - Only show for the active region

In response to some of the feedback, I've taken a second look at the situation
when multiple views are open, and indeed in that situation having it display in
every region and blinking was quite overwhelming (admittedly, I've mainly been
testing on single-view setups). Now it only shows for the region that was used
for initiating the transform.

6 years agoMotion Tracking; expose View All and Center to Current Frame to View menu of graph...
Sergey Sharybin [Tue, 9 Oct 2012 10:33:24 +0000 (10:33 +0000)]
Motion Tracking; expose View All and Center to Current Frame to View menu of graph view

6 years agoMotion Tracking: move keyframe settings to per-tracking object settings
Sergey Sharybin [Tue, 9 Oct 2012 10:33:18 +0000 (10:33 +0000)]
Motion Tracking: move keyframe settings to per-tracking object settings

6 years agoStyle cleanup - replace #define lists with enums
Joshua Leung [Tue, 9 Oct 2012 10:20:25 +0000 (10:20 +0000)]
Style cleanup - replace #define lists with enums

6 years agoOSX zoom pinch was using inverted direction
Sergey Sharybin [Tue, 9 Oct 2012 09:38:05 +0000 (09:38 +0000)]
OSX zoom pinch was using inverted direction

6 years agoAnother refactor for 3D view's edit Transform panel. Main changes:
Bastien Montagne [Tue, 9 Oct 2012 09:14:37 +0000 (09:14 +0000)]
Another refactor for 3D view's edit Transform panel. Main changes:
*Get rid of the magic numbers for median arrays, use defines instead, should make things a bit more clear and easy to edit (though there are still a bit of "array magic" on median here and there).
*Restore and extend use of RNA prop when a single (control)point of curve or lattice is selected, to allow keyframing (was added by sergey for curve radius in r41494, see [#29122], and reverted by myself in previous refactor r44599).

6 years agoRNA minor fixes:
Bastien Montagne [Tue, 9 Oct 2012 08:40:20 +0000 (08:40 +0000)]
RNA minor fixes:
*Bezier points' softbody weight was called just "weight", when it is "weight_softbody" for NURBS ones, made it the same!
*Added "weight_softbody" to Lattice points as well.

6 years agopatch [#31709] Text editor: scroll margin column along with text
Campbell Barton [Tue, 9 Oct 2012 06:15:07 +0000 (06:15 +0000)]
patch [#31709] Text editor: scroll margin column along with text
by Sebastian Nell (codemanx)

The margin ignored horizontal scrolling.

6 years agorename BGE KX_GameObject attrs
Campbell Barton [Tue, 9 Oct 2012 06:03:57 +0000 (06:03 +0000)]
rename BGE KX_GameObject attrs
* group -> group_parent
* members -> group_children

so its more clear what direction the relationship is.

6 years agopatch [#31875] Patch to get scene access through a game object
Campbell Barton [Tue, 9 Oct 2012 05:58:09 +0000 (05:58 +0000)]
patch [#31875] Patch to get scene access through a game object
from Jay Parker (battery)

6 years agofix for r51198, text wasn't flashing (gcc4.7, 64bit linux)
Campbell Barton [Tue, 9 Oct 2012 03:44:29 +0000 (03:44 +0000)]
fix for r51198, text wasn't flashing (gcc4.7, 64bit linux)

6 years agocode cleanup: quiet -Wreorder
Campbell Barton [Tue, 9 Oct 2012 03:14:38 +0000 (03:14 +0000)]
code cleanup: quiet -Wreorder

6 years agoapi changelog for 2.64 and 2.63 (which I missed last release)
Campbell Barton [Tue, 9 Oct 2012 01:07:08 +0000 (01:07 +0000)]
api changelog for 2.64 and 2.63 (which I missed last release)

6 years agoMade the autokeying warning optional by adding a user pref for this
Joshua Leung [Tue, 9 Oct 2012 00:59:40 +0000 (00:59 +0000)]
Made the autokeying warning optional by adding a user pref for this

By default, this is enabled, so that newbie users who are most likely to be
caught short by this will get the benefits of this option, while seasoned
animators are likely to know where to go to turn things off (i.e. the scratch-
an-itch urge is quite a powerful motivating force...)

6 years agoAnd more UI messages fixes...
Bastien Montagne [Mon, 8 Oct 2012 21:03:35 +0000 (21:03 +0000)]
And more UI messages fixes...

6 years agoMinor UI messages typo fixes.
Bastien Montagne [Mon, 8 Oct 2012 20:25:07 +0000 (20:25 +0000)]
Minor UI messages typo fixes.

6 years agoSome minor fixes about curves' tilt...
Bastien Montagne [Mon, 8 Oct 2012 20:01:36 +0000 (20:01 +0000)]
Some minor fixes about curves' tilt...

6 years agoCorrection to zoom-t-mouse formula which was broken since view2d drag zoom refactoring
Sergey Sharybin [Mon, 8 Oct 2012 17:41:27 +0000 (17:41 +0000)]
Correction to zoom-t-mouse formula which was broken since view2d drag zoom refactoring

6 years agocommitting 'a' to merge into the tag
Sergey Sharybin [Mon, 8 Oct 2012 13:57:49 +0000 (13:57 +0000)]
committing 'a' to merge into the tag

6 years agofix:[#32784] Crash when Exporting to Collada file (.dae) (was a utf8-character conver...
Gaia Clary [Mon, 8 Oct 2012 12:59:12 +0000 (12:59 +0000)]
fix:[#32784] Crash when Exporting to Collada file (.dae) (was a utf8-character conversion problem)

6 years agoFix #32795: Memory leak when rendering to video file
Sergey Sharybin [Mon, 8 Oct 2012 12:58:37 +0000 (12:58 +0000)]
Fix #32795: Memory leak when rendering to video file

6 years agoFix #32815: cycles environment render as lamp crash with resolution >= 1024.
Brecht Van Lommel [Mon, 8 Oct 2012 12:15:18 +0000 (12:15 +0000)]
Fix #32815: cycles environment render as lamp crash with resolution >= 1024.

6 years agoFix for own commit r51178, duplicate line.
Lukas Toenne [Mon, 8 Oct 2012 12:02:55 +0000 (12:02 +0000)]
Fix for own commit r51178, duplicate line.

6 years agoFix #32800: Cycles viewport incredible slow with high number of tiles
Sergey Sharybin [Mon, 8 Oct 2012 11:48:51 +0000 (11:48 +0000)]
Fix #32800: Cycles viewport incredible slow with high number of tiles

Final rendering is clamping tile resolution if it's too small, which was missing for viewport

6 years agoAllow user config files in qtcreator project.
Lukas Toenne [Mon, 8 Oct 2012 11:02:11 +0000 (11:02 +0000)]
Allow user config files in qtcreator project.

The blender.config file used for local #defines in qtcreator projects is rewritten on every project update. To avoid losing user settings these can now be written to an optional blender_custom.config file, which is then merged into the main blender.config on updates.

6 years agoresize info header (was too much white space)
Campbell Barton [Mon, 8 Oct 2012 10:50:18 +0000 (10:50 +0000)]
resize info header (was too much white space)

6 years agospeaker and empty where hardly visible
Campbell Barton [Mon, 8 Oct 2012 10:19:59 +0000 (10:19 +0000)]
speaker and empty where hardly visible

6 years agoupdate to ubuntu theme
Campbell Barton [Mon, 8 Oct 2012 10:04:36 +0000 (10:04 +0000)]
update to ubuntu theme

6 years agostyle cleanup: pep8
Campbell Barton [Mon, 8 Oct 2012 10:03:01 +0000 (10:03 +0000)]
style cleanup: pep8

6 years agoquiet msvc warning & allow zero arguments to add functions.
Campbell Barton [Mon, 8 Oct 2012 09:39:35 +0000 (09:39 +0000)]
quiet msvc warning & allow zero arguments to add functions.

6 years agoCode cleanup - Convert if blocks to switch
Joshua Leung [Mon, 8 Oct 2012 08:44:48 +0000 (08:44 +0000)]
Code cleanup - Convert if blocks to switch

6 years agostyle cleanup: pep8
Campbell Barton [Mon, 8 Oct 2012 08:28:05 +0000 (08:28 +0000)]
style cleanup: pep8

6 years agoDo not use nodeLabel() to generate new nodes' names, this is an UI func returning...
Bastien Montagne [Mon, 8 Oct 2012 07:40:57 +0000 (07:40 +0000)]
Do not use nodeLabel() to generate new nodes' names, this is an UI func returning translated strings, which should never get into data. And it may generates dummy names in some situations (like all new Filter nodes were getting "Soften" as name (default option), better to always get "Filter" in this case!).

(Note for Lockal: also checked fcurves/drivers, but those names are directly taken from RNA prop name, hence they are as UI label, translated in the current language, but not stored in data. So no problem here ;) ).

6 years agocode cleanup: reduce change the size of some float vectors that were bigger then...
Campbell Barton [Mon, 8 Oct 2012 07:08:29 +0000 (07:08 +0000)]
code cleanup: reduce change the size of some float vectors that were bigger then they needed to be.

update to clang_array_check.py - parse function definitions lazily for some speedup.

6 years agoFix #32803: Incorrect sequencer color space for newly added scenes
Sergey Sharybin [Mon, 8 Oct 2012 06:38:34 +0000 (06:38 +0000)]
Fix #32803: Incorrect sequencer color space for newly added scenes

6 years agoCode cleanup - silence some "uninitialised" warnings in BMesh code
Joshua Leung [Mon, 8 Oct 2012 06:28:06 +0000 (06:28 +0000)]
Code cleanup - silence some "uninitialised" warnings in BMesh code

There are still a lot more in bmo_bevel.c and bmo_extrude.c, but those don't
seem that easy to fix.

6 years agoBugfix: No enum tooltips displayed for many 3D view navigation tools (+ Code
Joshua Leung [Mon, 8 Oct 2012 06:21:36 +0000 (06:21 +0000)]
Bugfix: No enum tooltips displayed for many 3D view navigation tools (+ Code
cleanup)

* Enum tooltips will only be detected in the case that we assign that as the
default property (ot->prop) of the operator. Set all of the offending properties
to get this status, since those operators would be useless without that property
anyway

* Improved the wording/capitalisation of a few of these tooltips and labels

6 years agoDisplay enum descriptions in tooltips for operators using a "type" or "mode"
Joshua Leung [Mon, 8 Oct 2012 05:57:52 +0000 (05:57 +0000)]
Display enum descriptions in tooltips for operators using a "type" or "mode"
property

Changes:
This commit adds a second line to the tooltips (below the generic operator
description) showing the appropriate description for each enum option. This
brings it more into line enum properties in Blender which also show this sort of
information.

Rationale:
Operators such as Snap and Mirror in the Action and Graph Editors use an enum to
control their behaviour (respectively, "how to snap" or "what to use as the
mirror line"). In the menus, these options are displayed using a submenu, but
hovering over each of these items for more information from a tooltip only shows
the (relatively unhelpful) generic operator tooltip/description.

Another area where these descriptions are useful is for Keying Sets, where it's
now possible to see the descriptions for what each Keying Set
does/affects/requires. Again, this is more helpful than just the generic
tooltip, which would be something like "Insert keyframes using a Keying Set".

6 years agoPatch [#32639] Pose breakdown confirm by Return Key
Joshua Leung [Mon, 8 Oct 2012 04:42:06 +0000 (04:42 +0000)]
Patch [#32639] Pose breakdown confirm by Return Key

Thanks Julien DUROURE (julien)

6 years agofix [#32799] right click select in filebrowser breaks opening folders
Campbell Barton [Mon, 8 Oct 2012 03:33:02 +0000 (03:33 +0000)]
fix [#32799] right click select in filebrowser breaks opening folders
own regression since 2.63,

The path length for FILE_OT_select_bookmark was too short as well (256 --> FILE_MAXDIR).

6 years agoBGE: Setting up the RAS_ICanvas interface as the primary way to alter the OpenGL
Mitchell Stokes [Mon, 8 Oct 2012 03:28:11 +0000 (03:28 +0000)]
BGE: Setting up the RAS_ICanvas interface as the primary way to alter the OpenGL
viewport. This helps to eliminate OpenGL calls in weird places like the physics
code and to reduce glGet calls, which are expensive.

There should be no functional changes (except maybe a very slight speed improvement).

6 years agoadd option to build without blenders default avi codec.
Campbell Barton [Mon, 8 Oct 2012 02:51:42 +0000 (02:51 +0000)]
add option to build without blenders default avi codec.

6 years agofix for crash in the sequencer if the video file fails to load (missing NULL check...
Campbell Barton [Mon, 8 Oct 2012 02:20:47 +0000 (02:20 +0000)]
fix for crash in the sequencer if the video file fails to load (missing NULL check on imbuf),

all other uses of sequencer_imbuf_assign_spaces() check for NULL or assume IMB_allocImBuf() succeeds.

6 years agoBGE: Disable depth testing when drawing the overhead profile information in the Blend...
Mitchell Stokes [Mon, 8 Oct 2012 01:25:21 +0000 (01:25 +0000)]
BGE: Disable depth testing when drawing the overhead profile information in the Blenderplayer. This keeps the text from being blocked by geometry in the scene.

6 years agoquiet invalid warning in ffmpeg_log_callback with -Wmissing-format-attribute.
Campbell Barton [Mon, 8 Oct 2012 01:05:37 +0000 (01:05 +0000)]
quiet invalid warning in ffmpeg_log_callback with -Wmissing-format-attribute.

6 years agocode cleanup: replace VECADDISFAC with math function.
Campbell Barton [Mon, 8 Oct 2012 00:51:55 +0000 (00:51 +0000)]
code cleanup: replace VECADDISFAC with math function.

6 years agominor edit to type checking macro to avoid clangs static checker tagging the var...
Campbell Barton [Sun, 7 Oct 2012 23:58:57 +0000 (23:58 +0000)]
minor edit to type checking macro to avoid clangs static checker tagging the var as possibly NULL.

6 years agoGrease Pencil py-api
Dan Eicher [Sun, 7 Oct 2012 20:07:30 +0000 (20:07 +0000)]
Grease Pencil py-api

* new/remove for GPencil frames/strokes/
* add/pop for points
* clear for frame/layer & grease_pencil
* copy for frame

+ fix for free_gpencil_frames() not clearing the active frame

6 years agoBGE: When applying movement to an object with the Character physics type, use the...
Mitchell Stokes [Sun, 7 Oct 2012 19:10:03 +0000 (19:10 +0000)]
BGE: When applying movement to an object with the Character physics type, use the btKinematicCharacterController's setWalkDirection() instead of moving the physics object ourselves. This reduces issues with tunneling (the character going through other objects).

6 years agoFix file descriptor leak in BLI_file_ungzip_to_mem and small memleak in wm_window_title.
Sv. Lockal [Sun, 7 Oct 2012 15:39:47 +0000 (15:39 +0000)]
Fix file descriptor leak in BLI_file_ungzip_to_mem and small memleak in wm_window_title.

6 years agoRevert fix for #31806, needs a better solution, can hang compiling some shaders.
Brecht Van Lommel [Sun, 7 Oct 2012 14:15:50 +0000 (14:15 +0000)]
Revert fix for #31806, needs a better solution, can hang compiling some shaders.

6 years agostyle cleanup: line length,
Campbell Barton [Sun, 7 Oct 2012 14:00:18 +0000 (14:00 +0000)]
style cleanup: line length,
rename V3D_PROJ_RET_SUCCESS ->  V3D_PROJ_RET_OK

6 years agocode cleanup: grease pencil eraser had duplicated logic for getting screen coords...
Campbell Barton [Sun, 7 Oct 2012 12:31:56 +0000 (12:31 +0000)]
code cleanup: grease pencil eraser had duplicated logic for getting screen coords of a point, move into a static function.

6 years agocode cleanup: use checks for empty rather then size in the BGE
Campbell Barton [Sun, 7 Oct 2012 12:28:19 +0000 (12:28 +0000)]
code cleanup: use checks for empty rather then size in the BGE

6 years agofix for logical errors
Campbell Barton [Sun, 7 Oct 2012 10:01:54 +0000 (10:01 +0000)]
fix for logical errors
- range check on hair_velocity_smoothing() was off by one.
- cloth sim parm's are used before NULL check in readfile.c

6 years agostyle cleanup: if();
Campbell Barton [Sun, 7 Oct 2012 09:48:59 +0000 (09:48 +0000)]
style cleanup: if();

6 years agocode cleanup: glare stream operation was setting alpha array twice.
Campbell Barton [Sun, 7 Oct 2012 07:38:22 +0000 (07:38 +0000)]
code cleanup: glare stream operation was setting alpha array twice.

6 years agoadd type checking for more error prone macros.
Campbell Barton [Sun, 7 Oct 2012 07:27:09 +0000 (07:27 +0000)]
add type checking for more error prone macros.

6 years agorename avi files (endian.h is common linux include).
Campbell Barton [Sun, 7 Oct 2012 06:27:31 +0000 (06:27 +0000)]
rename avi files (endian.h is common linux include).

6 years agopatch [#32556] Stupid endian conversion in avi format
Campbell Barton [Sun, 7 Oct 2012 06:06:28 +0000 (06:06 +0000)]
patch [#32556] Stupid endian conversion in avi format
from Andreas Schwab (schwab)

modified to use code from BLI_endian_switch.

6 years agoOptimization for endian switching, but shifting is a lot faster then using a temp...
Campbell Barton [Sun, 7 Oct 2012 04:21:37 +0000 (04:21 +0000)]
Optimization for endian switching, but shifting is a lot faster then using a temp char (approx 18x speedup on my system).

6 years agopatch [#32791] Spelling mistakes corrected.
Campbell Barton [Sun, 7 Oct 2012 03:26:30 +0000 (03:26 +0000)]
patch [#32791] Spelling mistakes corrected.
from Sunny Gogoi (darkowlzz)

6 years agoFix render engine API compatibility breakage in end_result, this parameter
Brecht Van Lommel [Sun, 7 Oct 2012 00:30:31 +0000 (00:30 +0000)]
Fix render engine API compatibility breakage in end_result, this parameter
should have been optional.

6 years agoBGE: Committing patch [#31442] "API improvements: Group references python api, for...
Mitchell Stokes [Sun, 7 Oct 2012 00:09:02 +0000 (00:09 +0000)]
BGE: Committing patch [#31442] "API improvements: Group references python api, for better control over groups and instances" by Martin Sell (moerdn). This patch adds a member and a group property to KX_GameObject:
  * KX_GameObject.member returns the list of group members if the object is a group object, otherwise None is returned
  * KX_GameObject.group returns the group object that the object belongs to or None if the object is not part of a group

6 years agoForce USE_QTKIT for osx 64bit
Jens Verwiebe [Sat, 6 Oct 2012 18:53:57 +0000 (18:53 +0000)]
Force USE_QTKIT for osx 64bit

6 years agoFix for WITH_LLVM cmake option: When using WITH_CYCLES_OSL this option is forced...
Lukas Toenne [Sat, 6 Oct 2012 18:40:05 +0000 (18:40 +0000)]
Fix for WITH_LLVM cmake option: When using WITH_CYCLES_OSL this option is forced ON, but this change was not cached yet. Thanks to Jens Verwiebe for providing this fix.

6 years agoAvoid unecessary minimizer calculations in dualcon
Nicholas Bishop [Sat, 6 Oct 2012 18:28:38 +0000 (18:28 +0000)]
Avoid unecessary minimizer calculations in dualcon

* The minimize() function, which solves a least-squares problem, is
  only needed for sharp remesh mode, but was being calculated for
  smooth and blocks modes as well. Disabling this calculation when
  it's not needed gives a big performance boost.

6 years agoCode cleanups for dualcon octree
Nicholas Bishop [Sat, 6 Oct 2012 18:28:34 +0000 (18:28 +0000)]
Code cleanups for dualcon octree

* Move InternalNode operators from Octree class into InternalNode
  struct

* Constify various member functions

6 years agoIncrease maximum octree depth to 12
Nicholas Bishop [Sat, 6 Oct 2012 17:51:52 +0000 (17:51 +0000)]
Increase maximum octree depth to 12

Note that this is just an RNA change, underlying dualcon octree
already supports even higher values.

6 years agoCycles / OSL:
Thomas Dinges [Sat, 6 Oct 2012 17:11:53 +0000 (17:11 +0000)]
Cycles / OSL:
* OSL UI message did not show up when device type was GPU, but User Preferences were None. Also remove experimental check, more convenient for testing.

6 years agoImprove flat-shaded VBO drawing for sculpt meshes
Nicholas Bishop [Sat, 6 Oct 2012 16:52:52 +0000 (16:52 +0000)]
Improve flat-shaded VBO drawing for sculpt meshes

Separate vertex copies are now made for flat-shading, such that the
normal is correctly flat-shaded. The element index buffer is not
created in this case.

6 years agoCode cleanups for PBVH GPU buffers
Nicholas Bishop [Sat, 6 Oct 2012 16:42:11 +0000 (16:42 +0000)]
Code cleanups for PBVH GPU buffers

* De-duplicate GPU code to check if VBO should be used.

* Add a flag to indicate if the buffer should be drawn smooth or not,
  rather than checking each time the node is drawn.

6 years agoFix for a case of 'static initialization fiasco' with OSL closure variables. The...
Lukas Toenne [Sat, 6 Oct 2012 16:28:02 +0000 (16:28 +0000)]
Fix for a case of 'static initialization fiasco' with OSL closure variables. The parameter lists are using OIIO::TypeDesc static standards, which are also static variables. With static OSL libraries these are not initialized when the closure parameter lists are initialized, so OSL rejects the closure types.

Putting static initialization into functions works just as well, but ensures the OIIO::TypeDesc access is delayed until initialization is complete.

6 years agoFix for incomplete loading of liboslexec static library. This is needed in order...
Lukas Toenne [Sat, 6 Oct 2012 14:35:48 +0000 (14:35 +0000)]
Fix for incomplete loading of liboslexec static library. This is needed in order to provide the osl_allocate_closure_component function for LLVM.

6 years agoadded simple checker for array sizes, uses clang to parse C/C++,
Campbell Barton [Sat, 6 Oct 2012 12:36:21 +0000 (12:36 +0000)]
added simple checker for array sizes, uses clang to parse C/C++,

Warns if an array is passed to a function where the array is declared larger, eg float[2] argument is passed function defined as float[3], (or a greater size).

Existing free static checkers dont do this from what I can tell.

6 years agofix writing past array bounds in imagewraposa().
Campbell Barton [Sat, 6 Oct 2012 12:04:09 +0000 (12:04 +0000)]
fix writing past array bounds in imagewraposa().

also correct array sizes in othere areas.

6 years agofix reading past array bounds for nearest_uv_between() and draw_tracking_tracks().
Campbell Barton [Sat, 6 Oct 2012 12:00:54 +0000 (12:00 +0000)]
fix reading past array bounds for nearest_uv_between() and draw_tracking_tracks().