blender.git
7 years agoMerging trunk up to rev 40959
Sergey Sharybin [Wed, 12 Oct 2011 16:28:42 +0000 (16:28 +0000)]
Merging trunk up to rev 40959

7 years agoFree cache data when creating a new group from selected nodes. This would leave unfre...
Lukas Toenne [Wed, 12 Oct 2011 13:53:03 +0000 (13:53 +0000)]
Free cache data when creating a new group from selected nodes. This would leave unfreed memory behind otherwise, since node groups don't have internal caches.

7 years agoWorkaround for #28864: crash rendering out file with audio, due to scene audio
Brecht Van Lommel [Wed, 12 Oct 2011 13:43:56 +0000 (13:43 +0000)]
Workaround for #28864: crash rendering out file with audio, due to scene audio
channels being set to invalid value 0. The cause of this is unclear, this adds
a version patch just to be safe, in case it turns out to be a common issue.

7 years agoFix for #28876, alpha over with empty image node gives black result.
Lukas Toenne [Wed, 12 Oct 2011 13:07:30 +0000 (13:07 +0000)]
Fix for #28876, alpha over with empty image node gives black result.

The image node output is the default value when no image is selected. In pre-2.60 this was always initialized to 0 alpha, the defaults written in the node socket templates were completely ignored for outputs (except for value and RGB input nodes, which use these as button values). Now the stack values are initialized with the template defaults, which are all 0 by default. This patch changes alpha to 0 for image and render layer outputs too.

7 years agoFix for #28886, compositor cache regression bug.
Lukas Toenne [Wed, 12 Oct 2011 12:55:32 +0000 (12:55 +0000)]
Fix for #28886, compositor cache regression bug.

The problem was that all outputs got tagged indiscriminately (esp. hidden render layer sockets), leading to full recalculation every time. This was caused by erroneous tagging of bNodeStacks with hasinput/hasoutput flags. This patch restores the old behaviour of tagging all non-static stacks as input values and all outputs that are connected to some input. Only difference is in node groups, where the hasoutput flag is no longer abused for tagging internal buffers, here the is_copy flag is used instead.

7 years agoFixes for #26837: MPEG Preseek does not work for some h264 files.
Sergey Sharybin [Wed, 12 Oct 2011 12:49:45 +0000 (12:49 +0000)]
Fixes for #26837: MPEG Preseek does not work for some h264 files.

- Display running job template in all sequencer modes
  It was displayed only for sequencer mode without preview.
- Fixed proxy rebuild progress indicator
  It was alsways zero because of incorrect rounding.
- Fixed timecode saving on windows (and probably some other platforms)
  It was caused by incorrect opening file for writting -- it should
  be opened in binary format "wb". This error caused incorrect
  movie duration detection on windows.
- Fixed movie resolution detection for some movies.
  In file attached to report, Blender detected resolution 1920x1088
  instead of 1920x1080. Not sure if this fix is correct or it's
  issue in FFmpeg, but it's something what mplayer using: store
  width/height before running avcodec_open().
- Fixed frame number calculation when building timecodes.
  It was rounding error caused some frames be positioned incorrect
  in several cases (that each 6th frame rendered as next frame
  from report).

7 years agofix for possible buffer overflow bug in BLI_join_dirfile(), recent fix didn't account...
Campbell Barton [Wed, 12 Oct 2011 11:18:46 +0000 (11:18 +0000)]
fix for possible buffer overflow bug in BLI_join_dirfile(), recent fix didn't account for the case when destination string and dir string matched.

7 years agofix [#28882] grease pencil draw apperence seems to change wieght/thickness after...
Campbell Barton [Wed, 12 Oct 2011 03:46:38 +0000 (03:46 +0000)]
fix [#28882] grease pencil draw apperence seems to change wieght/thickness after a while

7 years agofix [#28883] redraw problems for particle mode's brush menu
Campbell Barton [Wed, 12 Oct 2011 01:36:06 +0000 (01:36 +0000)]
fix [#28883] redraw problems for particle mode's brush menu

The enum items for getting the brush tool (which the UI draws), would change after the 3D view first draws on exiting editmode.

Since the panel draws before the 3D view does, the UI had a glitch.

Fix by using psys_get_current() for the enum, rather then PE_get_current() which depends on an updated particle system.

7 years agopython UI was doing a lot of attribute lookups on tool & sculpt tool (not especially...
Campbell Barton [Wed, 12 Oct 2011 00:47:50 +0000 (00:47 +0000)]
python UI was doing a lot of attribute lookups on tool & sculpt tool (not especially efficient & annoying when adding breakpoints into why its not working right).

7 years agofix [#28880] relative paths don't work with Change Path/Files
Campbell Barton [Wed, 12 Oct 2011 00:21:08 +0000 (00:21 +0000)]
fix [#28880] relative paths don't work with Change Path/Files

7 years agochanges to relative path option
Campbell Barton [Wed, 12 Oct 2011 00:15:19 +0000 (00:15 +0000)]
changes to relative path option
- initialize the relative_path option in ED_fileselect_get_params(), saves initializing within every operators own init functions, some even trying to initialize a non existing property.
- don't set the operator default from the user preferece, operator property defaults should be static else python scripts for eg can get different defaults depending on user settings, this also wont get updated when user-defaults are edited so generally confusing & not good practice.

7 years agofix [#28879] can't change names of some of the VSE strips
Campbell Barton [Tue, 11 Oct 2011 23:52:45 +0000 (23:52 +0000)]
fix [#28879] can't change names of some of the VSE strips

Multi-Cam, Sound, Movie and Image strips were not showing strip names.

also replace sprintf() with safer BLI_snprintf()

7 years agofix [#28873] Blenders Python API Sphinx Build Script give exceptions
Campbell Barton [Tue, 11 Oct 2011 23:27:01 +0000 (23:27 +0000)]
fix [#28873] Blenders Python API Sphinx Build Script give exceptions

7 years agofix for crash caused by invalid active material index while editing text.
Campbell Barton [Tue, 11 Oct 2011 23:08:17 +0000 (23:08 +0000)]
fix for crash caused by invalid active material index while editing text.

also added some better error checking in object_remove_material_slot() so it will print an error rather then crashing if this case ever happens again.

7 years agoCommit testing notifier hack
Nathan Letwory [Tue, 11 Oct 2011 17:30:08 +0000 (17:30 +0000)]
Commit testing notifier hack

7 years agoFix crash drawing waveform with zero length sound, found looking into sound reading...
Brecht Van Lommel [Tue, 11 Oct 2011 14:53:27 +0000 (14:53 +0000)]
Fix crash drawing waveform with zero length sound, found looking into sound reading bug.

7 years agofix for drag-n-drop ID's for renaming (own fault when fixing #24016)
Campbell Barton [Tue, 11 Oct 2011 10:59:52 +0000 (10:59 +0000)]
fix for drag-n-drop ID's for renaming (own fault when fixing #24016)

7 years agorna source files are not needed in POTFILE.in, and small fix on readme
Xiao Xiangquan [Tue, 11 Oct 2011 06:24:11 +0000 (06:24 +0000)]
rna source files are not needed in POTFILE.in, and small fix on readme

7 years agoAdding FA (Persian - Farsi) language to po + flipping Arabic name in the Language...
Dalai Felinto [Tue, 11 Oct 2011 05:52:58 +0000 (05:52 +0000)]
Adding FA (Persian - Farsi) language to po + flipping Arabic name in the Language Enum

7 years agofix for py/rna assigning an invalid index. also give better error message in this...
Campbell Barton [Tue, 11 Oct 2011 05:45:59 +0000 (05:45 +0000)]
fix for py/rna assigning an invalid index. also give better error message in this case.

7 years agofix for crash in BLI_join_dirfile() when the dir is longer then the target string.
Campbell Barton [Tue, 11 Oct 2011 05:21:24 +0000 (05:21 +0000)]
fix for crash in BLI_join_dirfile() when the dir is longer then the target string.

starting blender in a dir longer then 240 chars would crash.

7 years agoHandle "Open Recent..."
Xiao Xiangquan [Tue, 11 Oct 2011 05:02:45 +0000 (05:02 +0000)]
Handle "Open Recent..."

7 years agopy api: bpy_extras.io_utils.path_reference() - added library argument so exporters...
Campbell Barton [Tue, 11 Oct 2011 04:36:27 +0000 (04:36 +0000)]
py api: bpy_extras.io_utils.path_reference() - added library argument so exporters get the paths of linked images right.

7 years ago- bpy.path.abspath(), added optional library argument since any paths from linked...
Campbell Barton [Tue, 11 Oct 2011 04:09:11 +0000 (04:09 +0000)]
- bpy.path.abspath(), added optional library argument since any paths from linked datablocks are relative to this, not the blend files path, this saves kludgy path code wherever libraries may be used.
- Image "Edit Externally" operator can now edit relative library images.

also minor edits to navmesh.

7 years agocreate navmesh operator would crash on non-mesh objects, add type check and report...
Campbell Barton [Mon, 10 Oct 2011 22:06:07 +0000 (22:06 +0000)]
create navmesh operator would crash on non-mesh objects, add type check and report if no mesh objects are selected.

7 years agoCamera tracking integration
Sergey Sharybin [Mon, 10 Oct 2011 18:19:54 +0000 (18:19 +0000)]
Camera tracking integration
===========================

More safe implementation of delete proxy operator.

7 years agoCamera tracking integration
Sergey Sharybin [Mon, 10 Oct 2011 17:42:04 +0000 (17:42 +0000)]
Camera tracking integration
===========================

- Added space_view3d.background_images.add() function to add new background
  image from scripts.
- Added operator to set current clip in clip editor as background in 3d viewport.
- Do not show reconstruction if camera hasn't got camera solver constraint.
- Added button to convert tracking-related constraint to fcurves.

7 years agoCamera tracking integration
Sergey Sharybin [Mon, 10 Oct 2011 15:29:39 +0000 (15:29 +0000)]
Camera tracking integration
===========================

- Fixed movie clip cache drawing -- it used to draw both
  distorted and undistorted cached frames.
- Undistort markers position in clip editor when using
  undistorted rendering.
  Can be noticeable slower when displaying paths.
- Display proper image in track preview widget when
  using undistorted rendering.
- Do not mark scoped as dirty when not in tracking mode.

7 years agoCamera tracking integration
Sergey Sharybin [Mon, 10 Oct 2011 15:29:31 +0000 (15:29 +0000)]
Camera tracking integration
===========================

Fixes for tracking job. Now transform can be started just after tracking job is finished.

7 years agoMerging r40877 through r40911 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 10 Oct 2011 15:24:31 +0000 (15:24 +0000)]
Merging r40877 through r40911 from trunk into soc-2011-tomato

7 years agoSequencer audio waveform drawing fix, now assured to be within the strip bounds.
Joerg Mueller [Mon, 10 Oct 2011 14:59:13 +0000 (14:59 +0000)]
Sequencer audio waveform drawing fix, now assured to be within the strip bounds.

7 years agoFix #28857: 2.60 rc1 regression?
Sergey Sharybin [Mon, 10 Oct 2011 14:32:08 +0000 (14:32 +0000)]
Fix #28857: 2.60 rc1 regression?

If displacement mapping is used, normals shouldn't be flipped.

7 years agofix [#28850] With "Auto-keyframe" on, the "Selection to Cursor" option doesn't create...
Campbell Barton [Mon, 10 Oct 2011 12:56:21 +0000 (12:56 +0000)]
fix [#28850] With "Auto-keyframe" on, the "Selection to Cursor" option doesn't create keyframe.

7 years agoRevert "Fix #28863: Inconsistent UI inside of the UV/ImageEditor window"
Sergey Sharybin [Mon, 10 Oct 2011 10:35:18 +0000 (10:35 +0000)]
Revert "Fix #28863: Inconsistent UI inside of the UV/ImageEditor window"

This reverts commit 40899 due to UI department feedback.

7 years agocorrect operator name from my own recent changes and edit navmesh rna prop name for...
Campbell Barton [Mon, 10 Oct 2011 10:24:26 +0000 (10:24 +0000)]
correct operator name from my own recent changes and edit navmesh rna prop name for consistency

7 years agofix bad svn ID tags
Campbell Barton [Mon, 10 Oct 2011 09:44:14 +0000 (09:44 +0000)]
fix bad svn ID tags

7 years agoheader cleanup (no functional changes)
Campbell Barton [Mon, 10 Oct 2011 09:38:02 +0000 (09:38 +0000)]
header cleanup (no functional changes)

7 years agoNow append/link will start at current blend file directory, if available (lastest...
Bastien Montagne [Mon, 10 Oct 2011 08:25:28 +0000 (08:25 +0000)]
Now append/link will start at current blend file directory, if available (lastest used lib keeps priority).

7 years agoadd in empty modifier slot so dynamic paint files don't break.
Campbell Barton [Mon, 10 Oct 2011 07:50:39 +0000 (07:50 +0000)]
add in empty modifier slot so dynamic paint files don't break.

7 years agoFix #28863: Inconsistent UI inside of the UV/ImageEditor window
Sergey Sharybin [Mon, 10 Oct 2011 07:40:44 +0000 (07:40 +0000)]
Fix #28863: Inconsistent UI inside of the UV/ImageEditor window

Make panels which are on left be toggled by T, and which are on right by N.

7 years agoupdates to navmesh
Campbell Barton [Mon, 10 Oct 2011 07:21:42 +0000 (07:21 +0000)]
updates to navmesh
- 2 new navmesh operators, reset and clear navmesh data.
- rename operators to be more consistent with existing names.
- some minor edits to draw function, was getting the custom data for every index when it already had the array.

7 years agoedit error macro formatting (confuses some editors)
Campbell Barton [Mon, 10 Oct 2011 07:10:53 +0000 (07:10 +0000)]
edit error macro formatting (confuses some editors)

7 years agofix for using uninitialized stack memory in mesh_foreachScreenFace__mapFunc(), used...
Campbell Barton [Mon, 10 Oct 2011 06:56:28 +0000 (06:56 +0000)]
fix for using uninitialized stack memory in mesh_foreachScreenFace__mapFunc(), used for face selection.

7 years agoupdate to cmake doc, still needs more work but update references to CVS and MSVC2005...
Campbell Barton [Mon, 10 Oct 2011 04:16:16 +0000 (04:16 +0000)]
update to cmake doc, still needs more work but update references to CVS and MSVC2005 and Python3.1

7 years ago- for some reason navmesh wasnt drawing when VBO was enabled.
Campbell Barton [Mon, 10 Oct 2011 02:56:26 +0000 (02:56 +0000)]
- for some reason navmesh wasnt drawing when VBO was enabled.
- fix navmesh crash (may well have been from own changes)
- changing VBO's now redraws all windows - useful for checking if VBO draws differently.

7 years agofix documentation error - [#28862] Method 'difference' doesn't exist in Quaternion...
Campbell Barton [Mon, 10 Oct 2011 01:14:49 +0000 (01:14 +0000)]
fix documentation error - [#28862] Method 'difference' doesn't exist in Quaternion object.

7 years agobug #28848 also mentions Ctrl+Backspace isnt working.
Campbell Barton [Mon, 10 Oct 2011 01:11:40 +0000 (01:11 +0000)]
bug #28848 also mentions Ctrl+Backspace isnt working.
added support for ctrl+backspace/delete.

7 years agofix [#28860] CRASH loading scene
Campbell Barton [Mon, 10 Oct 2011 00:38:32 +0000 (00:38 +0000)]
fix [#28860] CRASH loading scene

Sequence strips with missing scenes were missing a NULL check.

7 years agoadd 3 PLY and STL export tests.
Campbell Barton [Mon, 10 Oct 2011 00:29:23 +0000 (00:29 +0000)]
add 3 PLY and STL export tests.

7 years agomesh VBO drawing code was swapping red/blue vertex colors - this is confusing because...
Campbell Barton [Mon, 10 Oct 2011 00:01:44 +0000 (00:01 +0000)]
mesh VBO drawing code was swapping red/blue vertex colors - this is confusing because MCol.r is blue and MCol.b is red but not excuse! (and how come nobody noticed this?).

- fixed this error in 4 places.

7 years agofix for editmode opengl drawing (bug from own recent optimization), need to set glSha...
Campbell Barton [Sun, 9 Oct 2011 23:04:31 +0000 (23:04 +0000)]
fix for editmode opengl drawing (bug from own recent optimization), need to set glShadeModel() outside glBegin(GL_QUADS / GL_TRIANGLES).

7 years agofix crash for recent navmesh edits when setting a non-mesh object to a navmesh.
Campbell Barton [Sun, 9 Oct 2011 21:43:13 +0000 (21:43 +0000)]
fix crash for recent navmesh edits when setting a non-mesh object to a navmesh.
also minor cleanup.

7 years agomove NavMesh draw code out of being a modifier and into DerivedMesh drawing hack...
Campbell Barton [Sun, 9 Oct 2011 21:11:51 +0000 (21:11 +0000)]
move NavMesh draw code out of being a modifier and into DerivedMesh drawing hack (which IMHO is less bad then mis-using a modifier only to override drawing calls).

7 years agoCamera tracking integration
Sergey Sharybin [Sun, 9 Oct 2011 20:28:35 +0000 (20:28 +0000)]
Camera tracking integration
===========================

Scale compositor node feature: if there's no input and scaling is set to
absolute, generate image with given resolution using color from input
socket as background. Useful to generate "overscanned" foortage.

7 years agoCamera tracking integration
Sergey Sharybin [Sun, 9 Oct 2011 20:28:29 +0000 (20:28 +0000)]
Camera tracking integration
===========================

Support for (un)distortion of images with overscan. Needed for
easier keeping this up-to-date until proper overscan support is
implemented in renderer. Not exposed into UI yet at all.

7 years agoMerging r40848 through r40876 from trunk into soc-2011-tomato
Sergey Sharybin [Sun, 9 Oct 2011 20:26:56 +0000 (20:26 +0000)]
Merging r40848 through r40876 from trunk into soc-2011-tomato

7 years agoFix for update_msg.py, wasn’t filtering out prop names identical to prop identifiers...
Bastien Montagne [Sun, 9 Oct 2011 12:41:42 +0000 (12:41 +0000)]
Fix for update_msg.py, wasn’t filtering out prop names identical to prop identifiers (e.g. "float_array"...). Also updated french po & mo.

7 years agoincrease the hit radius for vertex selection in weight paint mode - increased to...
Campbell Barton [Sun, 9 Oct 2011 08:39:38 +0000 (08:39 +0000)]
increase the hit radius for vertex selection in weight paint mode - increased to 50 (same as editmode), was 3.

7 years agoreplace sprintf with strcpy where no formatting is done and return value isn't used.
Campbell Barton [Sun, 9 Oct 2011 06:03:38 +0000 (06:03 +0000)]
replace sprintf with strcpy where no formatting is done and return value isn't used.

7 years agoclear some warnings.
Campbell Barton [Sun, 9 Oct 2011 04:11:18 +0000 (04:11 +0000)]
clear some warnings.

7 years agocorrection to RNA class api references (only used for docs)
Campbell Barton [Sun, 9 Oct 2011 02:24:51 +0000 (02:24 +0000)]
correction to RNA class api references (only used for docs)

7 years agofix for BUILTIN_KSI_WholeCharacter keying custom string/collection/group properties
Campbell Barton [Sun, 9 Oct 2011 02:11:43 +0000 (02:11 +0000)]
fix for BUILTIN_KSI_WholeCharacter keying custom string/collection/group properties

7 years agotext edit: selecting zoomed in text with the mouse had an incorrect offset.
Campbell Barton [Sun, 9 Oct 2011 01:11:07 +0000 (01:11 +0000)]
text edit: selecting zoomed in text with the mouse had an incorrect offset.

7 years agotext editing: make jumping left/right both act the same way (was skipping an extra...
Campbell Barton [Sun, 9 Oct 2011 00:54:41 +0000 (00:54 +0000)]
text editing: make jumping left/right both act the same way (was skipping an extra char when jumping left).

7 years agobutton text editing: home/end were not moving the cursor position, only the selecton.
Campbell Barton [Sun, 9 Oct 2011 00:45:26 +0000 (00:45 +0000)]
button text editing: home/end were not moving the cursor position, only the selecton.

7 years agofix [#28848] Editing object name (e.g.), Ctrl-Shift-Arrows don't work as Ctrl-Arrows.
Campbell Barton [Sun, 9 Oct 2011 00:35:31 +0000 (00:35 +0000)]
fix [#28848] Editing object name (e.g.), Ctrl-Shift-Arrows don't work as Ctrl-Arrows.

7 years agofix [#28821] Whole Character keying set ignores non animatable propertyflag
Campbell Barton [Sat, 8 Oct 2011 12:27:52 +0000 (12:27 +0000)]
fix [#28821] Whole Character keying set ignores non animatable propertyflag

7 years agouse newly added ID_BLEND_PATH() in more places.
Campbell Barton [Sat, 8 Oct 2011 11:11:54 +0000 (11:11 +0000)]
use newly added ID_BLEND_PATH() in more places.

7 years agofix [#28846] Relative paths on linked scene fails
Campbell Barton [Sat, 8 Oct 2011 11:02:58 +0000 (11:02 +0000)]
fix [#28846] Relative paths on linked scene fails

7 years agofix for align objects with non mesh objects.
Campbell Barton [Fri, 7 Oct 2011 20:53:54 +0000 (20:53 +0000)]
fix for align objects with non mesh objects.

7 years agoCamera tracking integration
Sergey Sharybin [Fri, 7 Oct 2011 19:21:29 +0000 (19:21 +0000)]
Camera tracking integration
===========================

Fixed threading issues used to happen when compositor tree
and rendering happened in the same time. Problem was caused
by cached camera intrinsics stored in MovieTracking structure
and access to which wasn't thread-safe.

Now each movie distoriton mode stores it's own camera intrinsics
in it's storage which makes compositor (un)distoriton be totally
thread-safe and this also makes compositor tree faster when
(un)distortion happens on images with different resolution.

7 years agoMerging r40653 through r40847 from trunk into soc-2011-tomato
Sergey Sharybin [Fri, 7 Oct 2011 18:57:26 +0000 (18:57 +0000)]
Merging r40653 through r40847 from trunk into soc-2011-tomato

7 years agoPatch [#28660] x64 thumbnail handler not being installed in CMake builds by Tom Edwards.
Thomas Dinges [Fri, 7 Oct 2011 18:25:54 +0000 (18:25 +0000)]
Patch [#28660] x64 thumbnail handler not being installed in CMake builds by Tom Edwards.

7 years agoAdded Macro and KeyingSetInfo to blacklisted msg classes. Also updated french po...
Bastien Montagne [Fri, 7 Oct 2011 08:57:08 +0000 (08:57 +0000)]
Added Macro and KeyingSetInfo to blacklisted msg classes. Also updated french po & mo.

7 years agoScene.GameData DNA alignment nitpicking
Dalai Felinto [Fri, 7 Oct 2011 05:19:21 +0000 (05:19 +0000)]
Scene.GameData DNA alignment nitpicking
* "structures are always multiples of 8 bytes in size" (adding two pads for RecastData)
removing some unecessary pads. Moving others to make pad counting easy.

(although this patch is not highly needed in trunk it will help cucumber merging)
This could probably fixed the problem address at rev.40084

7 years agofix for own bad mistake, broke vector curve handles.
Campbell Barton [Fri, 7 Oct 2011 00:26:04 +0000 (00:26 +0000)]
fix for own bad mistake, broke vector curve handles.

7 years agofix [#28800] Scene NULL in frame change callback, crashes on property update.
Campbell Barton [Fri, 7 Oct 2011 00:08:40 +0000 (00:08 +0000)]
fix [#28800] Scene NULL in frame change callback, crashes on property update.

7 years agorna_ParticleDupliWeight_name_length was returning an incorrect value. Zealous debug...
Campbell Barton [Thu, 6 Oct 2011 23:16:12 +0000 (23:16 +0000)]
rna_ParticleDupliWeight_name_length was returning an incorrect value. Zealous debug checks are testing the (buf[len] == '\0')

7 years agospaces -> tabs (whitespace only changes)
Campbell Barton [Thu, 6 Oct 2011 22:04:01 +0000 (22:04 +0000)]
spaces -> tabs (whitespace only changes)

7 years agospaces -> tabs (only whitespace changes)
Campbell Barton [Thu, 6 Oct 2011 22:02:50 +0000 (22:02 +0000)]
spaces -> tabs (only whitespace changes)

7 years agofix [#27071] Random crashes when altering a mesh vertex vector in BGE
Campbell Barton [Thu, 6 Oct 2011 16:07:05 +0000 (16:07 +0000)]
fix [#27071] Random crashes when altering a mesh vertex vector in BGE

thanks to Chris Holland (topher77) for supplying the fix.

7 years agoFix #28819: Normal Maps appear inverted in GLSL shader and offline renderer (2.6rc1)
Sergey Sharybin [Thu, 6 Oct 2011 14:55:30 +0000 (14:55 +0000)]
Fix #28819: Normal Maps appear inverted in GLSL shader and offline renderer (2.6rc1)

Caused by recent bump maps flip commit.
If texture is used as Normal Map it's normal factor shouldn't be flipped.

7 years agoFix #28805: Add mesh, align to view, un check align to view. not updating.
Sergey Sharybin [Thu, 6 Oct 2011 12:51:33 +0000 (12:51 +0000)]
Fix #28805: Add mesh, align to view, un check align to view. not updating.

Re-set rotation property when "Lock to View" property changes.
This makes proper updates without breaking behavior.

7 years agoset mikktspace functions as static which are not used externally.
Campbell Barton [Thu, 6 Oct 2011 11:40:49 +0000 (11:40 +0000)]
set mikktspace functions as static which are not used externally.

7 years agohide 3d view header `use_pivot_point_align` button in editmode since its not used...
Campbell Barton [Thu, 6 Oct 2011 10:06:53 +0000 (10:06 +0000)]
hide 3d view header `use_pivot_point_align` button in editmode since its not used there, also remove unneeded copy() funcs from quick effects.

7 years agotexface fix: if material is not used by mesh set default bge mat flag (backface culli...
Dalai Felinto [Thu, 6 Oct 2011 06:56:45 +0000 (06:56 +0000)]
texface fix: if material is not used by mesh set default bge mat flag (backface culling on)
report by Mitchell Stokes over IRC, but probably one of the reason people have been asking
to expose the Game Settings material panel in the Render engine as well.

7 years agofix [#28113] ZTransp flag is not imported correctly from 2.49 files
Campbell Barton [Thu, 6 Oct 2011 06:16:20 +0000 (06:16 +0000)]
fix [#28113] ZTransp flag is not imported correctly from 2.49 files

infact this only changes a setting which is ignored. but may as well keep whats set in 2.4x.

7 years agoObject Menu Edits:
Campbell Barton [Thu, 6 Oct 2011 05:45:06 +0000 (05:45 +0000)]
Object Menu Edits:
- add quick effects to object menu, these are too useful to hide in search menu.
- set/clear track/parent - expand the operators enums in submenus - no advantage in having a further popup after clicking on the menu item.
- move 'Join UVs' into Make links menu which is currently being abused to store some copy functions. Do this because the 'Object' menu is getting too big.

7 years agofix for error in own edits to recently applied select link sequencer patch.
Campbell Barton [Thu, 6 Oct 2011 05:10:09 +0000 (05:10 +0000)]
fix for error in own edits to recently applied select link sequencer patch.

7 years agofix for weight paint with face mask enabled drawing with lights.
Campbell Barton [Thu, 6 Oct 2011 05:01:24 +0000 (05:01 +0000)]
fix for weight paint with face mask enabled drawing with lights.

7 years agoremove unused struct member & minor edits, no functional change.
Campbell Barton [Thu, 6 Oct 2011 04:33:00 +0000 (04:33 +0000)]
remove unused struct member & minor edits, no functional change.

7 years agofix for fix
Campbell Barton [Thu, 6 Oct 2011 04:09:48 +0000 (04:09 +0000)]
fix for fix

7 years agofix [#26193] Weightpainting on Mesh with Armature-Modifier fails if x-mirror and...
Campbell Barton [Thu, 6 Oct 2011 04:06:47 +0000 (04:06 +0000)]
fix [#26193] Weightpainting on Mesh with Armature-Modifier fails if x-mirror and auto normalize is enabled

7 years agocleanup for main weight paint drawing function while looking into a bug - no function...
Campbell Barton [Thu, 6 Oct 2011 03:57:03 +0000 (03:57 +0000)]
cleanup for main weight paint drawing function while looking into a bug - no functional changes.

7 years agodont define the ghost PREFIX for scons, since this means our portable downloadable...
Campbell Barton [Thu, 6 Oct 2011 02:29:15 +0000 (02:29 +0000)]
dont define the ghost PREFIX for scons, since this means our portable downloadable binary would find the system blender files (if installed).

this should stay disabled until scons supports system/portable installs as with cmake.

7 years agofix error in last commit & remove commented code which is now working in 2.5x.
Campbell Barton [Thu, 6 Oct 2011 02:19:04 +0000 (02:19 +0000)]
fix error in last commit & remove commented code which is now working in 2.5x.

7 years agofix for memory leak when calling wpaint_make_validmap() with no vertex groups.
Campbell Barton [Thu, 6 Oct 2011 01:51:01 +0000 (01:51 +0000)]
fix for memory leak when calling wpaint_make_validmap() with no vertex groups.

7 years agofix for crash when painting normalize with no vertex groups, also minor cleanup to...
Campbell Barton [Thu, 6 Oct 2011 01:29:32 +0000 (01:29 +0000)]
fix for crash when painting normalize with no vertex groups, also minor cleanup to do_weight_paint_auto_normalize_all_groups()

7 years agoscons flags were being set carelessly - CCFLAGS is like setting CFLAGS and CXXFLAGS...
Campbell Barton [Wed, 5 Oct 2011 23:35:03 +0000 (23:35 +0000)]
scons flags were being set carelessly - CCFLAGS is like setting CFLAGS and CXXFLAGS - in a few cases this was being set redundantly.

there are more cases that chould be changed since CPPFLAGS and CCFLAGS are both being set where only one is needed but for now this is safe.