blender.git
8 years agotedious string copying changes
Campbell Barton [Fri, 5 Nov 2010 07:35:21 +0000 (07:35 +0000)]
tedious string copying changes
- use sizeof() in more places.
- fixed some off by 1 bugs copying strings. setting curve font family for instance was 1 char too short.
- replace strncpy and strcpy with BLI_strncpy

8 years agoworkaround/fix for [#24540] Adding the path to an image Editor in the file preference...
Campbell Barton [Fri, 5 Nov 2010 06:33:33 +0000 (06:33 +0000)]
workaround/fix for [#24540] Adding the path to an image Editor in the file preferences window messes up the path
when selecting paths from the user preferences always default relative option to off.
otherwise you get paths like '//..\..\..\..\Program Files\GIMP-2.0\bin\gimp-2.6.exe'

8 years agocentralize function for calculating pixel size. (no functional changes)
Campbell Barton [Fri, 5 Nov 2010 05:26:34 +0000 (05:26 +0000)]
centralize function for calculating pixel size. (no functional changes)

8 years agoadded back include file globbing for cmake, thought this was needed for MSVC only...
Campbell Barton [Fri, 5 Nov 2010 04:18:53 +0000 (04:18 +0000)]
added back include file globbing for cmake, thought this was needed for MSVC only but turns out QtCreator also needs this else it wont index headers.

8 years ago'Continue' zoom method for 2d views wasn't continuously updating. added a timer so...
Campbell Barton [Fri, 5 Nov 2010 03:54:54 +0000 (03:54 +0000)]
'Continue' zoom method for 2d views wasn't continuously updating. added a timer so it works like the 3D view.

8 years agoincorrect poll function for clearing/applying loc/rot/scale.
Campbell Barton [Fri, 5 Nov 2010 02:49:01 +0000 (02:49 +0000)]
incorrect poll function for clearing/applying loc/rot/scale.
Without an active object it wasn't possible to clear location on the selected objects for eg.

8 years agofix for missing NULL check with brush poll, reported by Mike S.
Campbell Barton [Fri, 5 Nov 2010 02:42:33 +0000 (02:42 +0000)]
fix for missing NULL check with brush poll, reported by Mike S.

8 years agofix for linking the player, also fixes building without python and bullet.
Campbell Barton [Fri, 5 Nov 2010 01:47:55 +0000 (01:47 +0000)]
fix for linking the player, also fixes building without python and bullet.

8 years agoBugfix #24535: File saved with NLA Strip in Tweakmode crashes on reload
Joshua Leung [Fri, 5 Nov 2010 00:09:45 +0000 (00:09 +0000)]
Bugfix #24535: File saved with NLA Strip in Tweakmode crashes on reload

Now the active strip doesn't just get cleared on fileload, but is relinked properly.

I had originally intended that files shouldn't be able to be saved with NLA data still in Tweakmode, but this turns out to be a bit more troublesome to get working as that would make undo keep popping out of this mode too.

Also reverting 32743 (bugfix for 24418), which was a hack around this.

8 years agoTemporary fix for "freezing when pointcache is baked":
Janne Karhu [Thu, 4 Nov 2010 20:17:38 +0000 (20:17 +0000)]
Temporary fix for "freezing when pointcache is baked":
* WM_timecursor is broken somehow, so pointcache baking makes the cursor disappear.
* For user this seems like blender has frozen although it's just a matter of no progress indication.
* This fix just sets the default "busy" cursor for the whole duration of baking and reports progress in the console.
* If there's and easy fix for this then it should probably be done straight away, but I want to re-implement baking using the job system soon anyways, so a proper fix for this is not strictly necessary.

8 years agoFix for [#24510] VSE SceneStrip problem when rendering animation
Janne Karhu [Thu, 4 Nov 2010 18:16:34 +0000 (18:16 +0000)]
Fix for [#24510] VSE SceneStrip problem when rendering animation

8 years agoFix for [#24513] VSE curves displaced from effect when source is moved numerically
Janne Karhu [Thu, 4 Nov 2010 17:02:32 +0000 (17:02 +0000)]
Fix for [#24513] VSE curves displaced from effect when source is moved numerically

8 years agoGlobal definition of _LARGEFILE_SOURCE, _FILE_OFFSET_BITS and _LARGEFILE64_SOURCE...
Sergey Sharybin [Thu, 4 Nov 2010 17:02:25 +0000 (17:02 +0000)]
Global definition of _LARGEFILE_SOURCE, _FILE_OFFSET_BITS and _LARGEFILE64_SOURCE at linux and win32/mingw platforms

Needed to work properly with large files at 32bit system (display correct size in file browser, i.e.)

This will also fix compilation with zlib 1.2.5

8 years agofor some reason even though this resizes areas more evenly on my system (and works...
Campbell Barton [Thu, 4 Nov 2010 16:17:37 +0000 (16:17 +0000)]
for some reason even though this resizes areas more evenly on my system (and works ok on Brecht's) theres a report that resizing views fail.
[#24529] Views Resizing Problems

now this is exactly like what it was before, hope its fixed.

8 years agoFix #24388: multires base mesh
Sergey Sharybin [Thu, 4 Nov 2010 16:00:28 +0000 (16:00 +0000)]
Fix #24388: multires base mesh

- MDisp should be re-allocated if face changed amount of vertices
- Allocate disps array in layerSwap_mdisps to prevent loosing all highres data

8 years agobugfix [#24009] Crash when switching area types and performing ops
Campbell Barton [Thu, 4 Nov 2010 15:59:09 +0000 (15:59 +0000)]
bugfix [#24009] Crash when switching area types and performing ops

8 years agowarn if blender is compiled without python
Campbell Barton [Thu, 4 Nov 2010 13:13:31 +0000 (13:13 +0000)]
warn if blender is compiled without python

8 years agofix to allow [#24009] to be fixed.
Campbell Barton [Thu, 4 Nov 2010 12:59:03 +0000 (12:59 +0000)]
fix to allow [#24009] to be fixed.

WM_operator_poll() could fail in cases WM_operator_name_call() would succeed because calling the operator would setup the context before calling poll.
this would result in python raising an invalid error or menu items being greyed out.

now python can also check with an operator context:
  bpy.ops.object.editmode_toggle.poll('INVOKE_SCREEN')

8 years agoFix #24531: UV editor: setting rotating/scaling pivot with [ , ] [ . ] not working.
Brecht Van Lommel [Thu, 4 Nov 2010 11:45:30 +0000 (11:45 +0000)]
Fix #24531: UV editor: setting rotating/scaling pivot with [ , ] [ . ] not working.
Patch by M.G. Kishalmi, thanks!

8 years agoFix #24523: deep shadows are rendered although object's shadow casting is disabled.
Brecht Van Lommel [Thu, 4 Nov 2010 11:41:05 +0000 (11:41 +0000)]
Fix #24523: deep shadows are rendered although object's shadow casting is disabled.

8 years agoworkaround/fix [#24451] Motion path not automatic recalculating + locking obj moving
Campbell Barton [Wed, 3 Nov 2010 23:49:56 +0000 (23:49 +0000)]
workaround/fix [#24451] Motion path not automatic recalculating + locking obj moving

Comment from source...
/* re-calculating the frame positions means we loose our original transform if its not auto-keyed [#24451]
 * this hack re-applies it, which is annoying, only alternatives are...
 * - dont recalc paths.
 * - have an object_handle_update() which gives is the new transform without touching the objects.
 * - only recalc paths on auto-keying.
 * - ED_objects_recalculate_paths could backup/restore transforms.
 * - re-apply the transform which is simplest in this case. (2 lines below)
 */

Martin, if you think this workaround is unacceptable, then automatic recalculating of paths after transform should probably be disabled since it looses data on non transform un-keyed values.

8 years agobugfix [#24518] Blender wont compile with -Wall -Werror and COLLADA support
Campbell Barton [Wed, 3 Nov 2010 22:44:39 +0000 (22:44 +0000)]
bugfix [#24518] Blender wont compile with -Wall -Werror and COLLADA support
fix included in report from Martijn Berger (mberger)
made some small changes.

- use ints rather then unsigned long for printing, values are not likely to be very large.
- CMake remove strict flags from collada build dir since I had warnings in the collada headers.
- added xml2 to collada libraries else I couldnt get collada building.

8 years agofix for #24428, commit r32757 broke menu bar display for some users [#24454] (but...
Campbell Barton [Wed, 3 Nov 2010 22:11:17 +0000 (22:11 +0000)]
fix for #24428, commit r32757 broke menu bar display for some users [#24454] (but not me for some reason).
For now revert most of r32757.

8 years agoworkaround [#24392] 2d Image paint editor: no clone/smear/soften tools etc
Campbell Barton [Wed, 3 Nov 2010 21:23:02 +0000 (21:23 +0000)]
workaround [#24392] 2d Image paint editor: no clone/smear/soften tools etc
the brush system matches the brush mode with the object mode, but this doesn't work for 2D image view paint.
since the poll() function doesnt have access to the context, for now just check if no paint modes are active, default to texture paint.

8 years agoFix for [#21958] Dupli group doesn't show up if linked on a layer that is different...
Janne Karhu [Wed, 3 Nov 2010 16:51:25 +0000 (16:51 +0000)]
Fix for [#21958] Dupli group doesn't show up if linked on a layer that is different from the group layer
* Object layer flag was set too soon for group duplication.

8 years agoA few texture node properties still had old rna names in draw code.
Janne Karhu [Wed, 3 Nov 2010 15:30:24 +0000 (15:30 +0000)]
A few texture node properties still had old rna names in draw code.

8 years ago[#23095] If no camera is present, a render starts but does nothing, and we have no...
Sergey Sharybin [Wed, 3 Nov 2010 13:10:09 +0000 (13:10 +0000)]
[#23095] If no camera is present, a render starts but does nothing, and we have no "No camera" warning

Improve camera checking and move it before starting render jobs

8 years agobugfix [#24508] Render and changing scenes crashes.
Campbell Barton [Wed, 3 Nov 2010 11:14:02 +0000 (11:14 +0000)]
bugfix [#24508] Render and changing scenes crashes.
The scenes 'Render' is kept by blender while blender runs but the callbacks were not cleared when the render was done.
In this case the callback would reference a freed render job.

This isn't normally a problem because on re-rendering new callbacks are set, however the sequencer can render a previously rendered scene without setting up callbacks.
Simple fix is to to dummy callbacks applied onto the scenes 'Render' struct once its finished.

8 years agobugfix [#24445] NLA reverse option flickers
Campbell Barton [Wed, 3 Nov 2010 08:46:14 +0000 (08:46 +0000)]
bugfix [#24445] NLA reverse option flickers
UnMapping the reversed NLA strips timing was incorrect.

8 years agouse c90 compatible static initializers.
Campbell Barton [Wed, 3 Nov 2010 06:31:53 +0000 (06:31 +0000)]
use c90 compatible static initializers.

8 years agobugfix [#24505] Python command bpy.ops.transform.rotate(...) does not follow axis...
Campbell Barton [Wed, 3 Nov 2010 04:38:07 +0000 (04:38 +0000)]
bugfix [#24505] Python command bpy.ops.transform.rotate(...) does not follow axis=(...) attribute
the axis was being constantly re-initialized from the view.

8 years agobugfix [#24483] Link/Append File Browser Typo
Campbell Barton [Wed, 3 Nov 2010 03:45:09 +0000 (03:45 +0000)]
bugfix [#24483] Link/Append File Browser Typo

8 years agopaint/face mask lasso select was checking for uv coords, which isnt needed, also...
Campbell Barton [Wed, 3 Nov 2010 02:50:05 +0000 (02:50 +0000)]
paint/face mask lasso select was checking for uv coords, which isnt needed, also make a mistake on this check last commit.

8 years agoadded metaball lasso select.
Campbell Barton [Wed, 3 Nov 2010 02:28:11 +0000 (02:28 +0000)]
added metaball lasso select.

8 years agofix [#24499] Consistency Issue with LassoSelect/ExtendOption
Campbell Barton [Wed, 3 Nov 2010 01:56:02 +0000 (01:56 +0000)]
fix [#24499] Consistency Issue with LassoSelect/ExtendOption
Added extend option to lasso.

also...
- selecting bones wasn't checking their layer of if they were hidden in a number of places.
- fixed memory leak.

small unrealed changes
- added PBONE_VISIBLE macro
- renamed functions used for paint selectoin from *_tface to paintface_*. sine they no longer have anything todo with tface's.
- removed scanfill include from BLI_blenlib.h, this is only used in very few places and quite specific.

Noticed lasso select is broken for metaballs and face mask mode but this has been the case for a while, will look into it next.

8 years agobugfix [#24392] 2d Image paint editor: no clone/smear/soften tools etc
Campbell Barton [Tue, 2 Nov 2010 22:04:41 +0000 (22:04 +0000)]
bugfix [#24392] 2d Image paint editor: no clone/smear/soften tools etc

8 years ago- remove BLANK* from rna icon enum, would string search this list for every python...
Campbell Barton [Tue, 2 Nov 2010 21:43:47 +0000 (21:43 +0000)]
- remove BLANK* from rna icon enum, would string search this list for every python icon button call, enum from 818 down to 444.
- remove unused space image members

8 years agoOops, particle collisions didn't take simulation subframes into account at all.
Janne Karhu [Tue, 2 Nov 2010 21:16:41 +0000 (21:16 +0000)]
Oops, particle collisions didn't take simulation subframes into account at all.
* This caused nearly all particles to leak through the collision surface if simulation subframes were used and the collision object was moving.
* In addition to fixing this I also did some more cleanup of the collision code and refined some of the comments.

8 years agoFix for [#24501] Apeend object with cloth sim from another file crash.
Janne Karhu [Tue, 2 Nov 2010 15:21:43 +0000 (15:21 +0000)]
Fix for [#24501] Apeend object with cloth sim from another file crash.

8 years agofix for compiling with the c90 standard, support for non-static variable initializers...
Campbell Barton [Tue, 2 Nov 2010 13:12:30 +0000 (13:12 +0000)]
fix for compiling with the c90 standard, support for non-static variable initializers is a c99 feature.

8 years agoFix #24436: GLSL + Node material gives wrong color.
Brecht Van Lommel [Tue, 2 Nov 2010 12:18:49 +0000 (12:18 +0000)]
Fix #24436: GLSL + Node material gives wrong color.

8 years agoFix #24435: GLSL 3D view lacks refresh on node setups, patch by Lukas Toenne.
Brecht Van Lommel [Tue, 2 Nov 2010 11:41:25 +0000 (11:41 +0000)]
Fix #24435: GLSL 3D view lacks refresh on node setups, patch by Lukas Toenne.

8 years agobugfix [#24398] Select Nth
Campbell Barton [Tue, 2 Nov 2010 11:14:04 +0000 (11:14 +0000)]
bugfix [#24398] Select Nth
- use first selected if non active (clears confusion since this isn't at all clear)
- dont take unselected into account when calculating connectivity, would mess up in many cases.

8 years agoUI:
Thomas Dinges [Tue, 2 Nov 2010 11:10:21 +0000 (11:10 +0000)]
UI:
* Sampled Motion Blur Panel missed check for compatible engines, causing the panel to appear in Game Engine and Netrender as well.

8 years agoFix #24485: Applying scale to multires object end up in a blender crash
Sergey Sharybin [Tue, 2 Nov 2010 10:55:49 +0000 (10:55 +0000)]
Fix #24485: Applying scale to multires object end up in a blender crash

Fixed multires_apply_smat to work properly with different current and
total subdivision levels.

8 years agobugfix [#24455] Scene is left at last rendered frame from rendering an animation
Campbell Barton [Tue, 2 Nov 2010 09:34:32 +0000 (09:34 +0000)]
bugfix [#24455] Scene is left at last rendered frame from rendering an animation

8 years agoPatch [#24497] Fix for [#24484] Right Ctrl for snapping by Alexander Kuznetsov. Thank...
Thomas Dinges [Tue, 2 Nov 2010 09:04:57 +0000 (09:04 +0000)]
Patch [#24497] Fix for [#24484] Right Ctrl for snapping by Alexander Kuznetsov. Thank you!

This fixes [#24484] Right Hand Ctrl key none functional for snapping?

8 years agopatch [#24496] Fix for exporting animations to OBJ format.
Campbell Barton [Tue, 2 Nov 2010 04:12:00 +0000 (04:12 +0000)]
patch [#24496] Fix for exporting animations to OBJ format.
from Keith Astoria (kastoria)

8 years agobugfix for exporting an FBX animation for an object that was the child of an armature...
Campbell Barton [Tue, 2 Nov 2010 01:12:00 +0000 (01:12 +0000)]
bugfix for exporting an FBX animation for an object that was the child of an armature deformed mesh.

8 years agouse __slots__ for fbx exporter classes, no functional change.
Campbell Barton [Tue, 2 Nov 2010 00:39:07 +0000 (00:39 +0000)]
use __slots__ for fbx exporter classes, no functional change.

8 years agoRecommit sharp font optional code as all Freetype should be above 2.1.10 now.
Guillermo S. Romero [Mon, 1 Nov 2010 23:26:04 +0000 (23:26 +0000)]
Recommit sharp font optional code as all Freetype should be above 2.1.10 now.
If still fails, check & update Freetype (OS one or Blender's lib/).

8 years agoAdd PREFIX support to makefiles.
Guillermo S. Romero [Mon, 1 Nov 2010 23:17:58 +0000 (23:17 +0000)]
Add PREFIX support to makefiles.

8 years agoFix #24464: missing icons. It looks like there were some icons still named
Brecht Van Lommel [Mon, 1 Nov 2010 22:28:58 +0000 (22:28 +0000)]
Fix #24464: missing icons. It looks like there were some icons still named
from the 2.4 them but they were never in the 2.5 theme, so marked as BLANK
now.

8 years agothrow an error is PREFIX isnt defined on X11 systems. defaults to /usr/local
Campbell Barton [Mon, 1 Nov 2010 22:26:56 +0000 (22:26 +0000)]
throw an error is PREFIX isnt defined on X11 systems. defaults to /usr/local

8 years agoFix #24489: decimate modifier: undecimated is "ratio 1.00%".
Brecht Van Lommel [Mon, 1 Nov 2010 21:53:35 +0000 (21:53 +0000)]
Fix #24489: decimate modifier: undecimated is "ratio 1.00%".
Patch by Emil Brink, thanks!

8 years agoFix for some enum property identifiers, that were not using upper case
Brecht Van Lommel [Mon, 1 Nov 2010 21:45:38 +0000 (21:45 +0000)]
Fix for some enum property identifiers, that were not using upper case
with underscore, or were simply not set correctly after code copy/paste.

8 years ago[#24491] not possible to create a new Rendering preset than "add render preset.py"
Campbell Barton [Mon, 1 Nov 2010 21:07:25 +0000 (21:07 +0000)]
[#24491] not possible to create a new Rendering preset than "add render preset.py"
- Setting operator properties was broken because of bpy_types.py meta-classing (surprising this wasn't noticed before!)
- Presets now use a dialog with an OK button.
- Presets use a check function on the filename so invalid chars are replaced editing.
- Submit docs operator was broken.

8 years agoSequencer: fix for the fix of: #23318
Peter Schlaile [Mon, 1 Nov 2010 18:55:12 +0000 (18:55 +0000)]
Sequencer: fix for the fix of: #23318
also known as: broken multicam strip caused by other fix.

Calculated render_size where it belongs (within the glow effect) and
restored old functionality.

also: renamed render_size to preview_render_size at all relevant places,
where the naming wasn't used correctly.

Hopefully it's now a little bit more clear.

render_size := render size from scene (just rescales width/height)
preview_render_size := preview render size from sequencer preview,
  controls the resolution and the use of sequencer proxy sources

8 years ago== FFMPEG ==
Peter Schlaile [Mon, 1 Nov 2010 18:13:10 +0000 (18:13 +0000)]
== FFMPEG ==

This fixes a rather subtle seeking issue with ffmpeg and Sony
XDCAM-footage.

Problem is: MPEG2 streams within an MP4 container can contain a start
time - at several places. There is a starttime within the video
and audio streams and one within the container.

FFMpeg commandline tool only uses the container starttime and we used
the stream starttime.

The world would be a better place, if those two timestamps always match
up, since in XDCAM-footage those two starttimes differ in 4
frames - and the container has the right one.

We now always use the container start time as ffmpeg commandline tool
does (in the hope, that there is a good explaination for this and this
is the right thing(tm) to do).

I tested this also with HDV footage, which seems to work with the new
code, too.

Additional fix: disabled seek_by_bytes again, since it will only work
correctly, if ffmpeg guessed the HDV bitrate right (which it doesn't).
If you have seeking issues with HDV and have an older version of ffmpeg
installed, please upgrade, newer versions have some fixes in them.

8 years ago"Fix" for [#22537] motion blur render result incorrect when full sample anti-aliasing...
Janne Karhu [Mon, 1 Nov 2010 13:51:11 +0000 (13:51 +0000)]
"Fix" for [#22537] motion blur render result incorrect when full sample anti-aliasing is selected
* FSA and motion blur can't work nicely together the way they're currently implemented, so I disabled this in the ui and code.
* FSA is used if both are selected.
* Also changed the name "Full Sample Motion Blur" to "Sampled Motion Blur" to avoid confusion with full sample anti-aliasing.

8 years ago== blender file format ==
Luca Bonavita [Mon, 1 Nov 2010 13:27:33 +0000 (13:27 +0000)]
== blender file format ==

- added a readme so that it's easy to understand how to use the py files.
- fixed typos in the usage message.

8 years agoimprovement to axis/angle gimble conversion added last commit. fixed flipping problem...
Campbell Barton [Mon, 1 Nov 2010 11:50:15 +0000 (11:50 +0000)]
improvement to axis/angle gimble conversion added last commit. fixed flipping problems and enabled for pose bones.

8 years agoTemporary revert recent changes in blf_glyph.c until its fixed.
Thomas Dinges [Mon, 1 Nov 2010 10:48:48 +0000 (10:48 +0000)]
Temporary revert recent changes in blf_glyph.c until its fixed.

>> Compile failure on windows platform (see ML for Errors).

SVN Revert of Revisions: 32805, 32804 and 32802

8 years agobugfix [#24480] Axis Angle + manipulators: bad behaviour
Campbell Barton [Mon, 1 Nov 2010 10:29:05 +0000 (10:29 +0000)]
bugfix [#24480] Axis Angle + manipulators: bad behaviour

8 years agoPatch: [#24479] fix for bug 24474, by Anthony Edlin. Thanks!
Thomas Dinges [Mon, 1 Nov 2010 10:22:46 +0000 (10:22 +0000)]
Patch: [#24479] fix for bug 24474, by Anthony Edlin. Thanks!

This fixes [#24474] Pressing <Shift Alt A> or clicking "Play Animation ... reverse = True" does not play animation backwards

8 years agobugfix [#24477] Can easily create bones with duplicate names
Campbell Barton [Mon, 1 Nov 2010 07:19:41 +0000 (07:19 +0000)]
bugfix [#24477] Can easily create bones with duplicate names
- fixed this error 7 different functions (deform groups, uv layers & similar).
- support for numbers over 999.
- renamed splitIDname() to BLI_split_name_num(), moved to BLI_path_utils

8 years agobugfix [#24449] User Preferences - Interface - Manipulator
Campbell Barton [Mon, 1 Nov 2010 02:22:20 +0000 (02:22 +0000)]
bugfix [#24449] User Preferences - Interface - Manipulator

8 years agoFix silly column paste.
Guillermo S. Romero [Mon, 1 Nov 2010 01:48:43 +0000 (01:48 +0000)]
Fix silly column paste.

8 years agobugfix [#24462] UV Layouts saved as PNG results in two files (one is 0 KB, other...
Campbell Barton [Mon, 1 Nov 2010 01:46:26 +0000 (01:46 +0000)]
bugfix [#24462] UV Layouts saved as PNG results in two files (one is 0 KB, other has corrupted filename)

8 years agoProvide a way to get non-AA font rendering, which some see as "sharper".
Guillermo S. Romero [Mon, 1 Nov 2010 01:45:40 +0000 (01:45 +0000)]
Provide a way to get non-AA font rendering, which some see as "sharper".
"Configuration" by recompilation for now (feel free to code that).

8 years agoA couple of changes to 2D filters to make adding new built-in ones nicer:
Mitchell Stokes [Mon, 1 Nov 2010 00:15:12 +0000 (00:15 +0000)]
A couple of changes to 2D filters to make adding new built-in ones nicer:
  * Built-in filters were not being analyzed, which means no depth or luminance textures for them
  * Removed an unnecessary if that becomes really hairy when new built-in filters are added (ie, when filters are defined beyond the value used for custom filters)

8 years agoFix name, update others to match style.
Guillermo S. Romero [Mon, 1 Nov 2010 00:09:33 +0000 (00:09 +0000)]
Fix name, update others to match style.

8 years agobugfix [#24470] Ctrl+Tweak cutting connections fail
Campbell Barton [Sun, 31 Oct 2010 22:19:52 +0000 (22:19 +0000)]
bugfix [#24470] Ctrl+Tweak cutting connections fail

8 years agoinitialize structs to zero rather then using memset().
Campbell Barton [Sun, 31 Oct 2010 15:39:37 +0000 (15:39 +0000)]
initialize structs to zero rather then using memset().

8 years agoAudaspace: Disabling High- and Lowpass for Bake Sound to F-Curve Operator in case...
Joerg Mueller [Sun, 31 Oct 2010 14:44:45 +0000 (14:44 +0000)]
Audaspace: Disabling High- and Lowpass for Bake Sound to F-Curve Operator in case they're unused.

8 years agobugfix [#24466] Selecting of object with pattern leads to strange behavior
Campbell Barton [Sun, 31 Oct 2010 14:43:30 +0000 (14:43 +0000)]
bugfix [#24466] Selecting of object with pattern leads to strange behavior
The undo problem was caused by python operators returning 'RUNNING_MODAL' rather then the return value from wm.invoke_props_popup(self, event) - 'FINISHED'.

This was done because returning FINISHED would free the operator causing the buttons redo handler to try and run a freed operator and crash.

So the real fix is to disallow any operators to use wm.invoke_props_popup(self, event) if they dont have the REGISTER option enabled, fixing the crash and redo problem.

8 years agoFix for #24453: Missing delete statement.
Joerg Mueller [Sun, 31 Oct 2010 14:21:06 +0000 (14:21 +0000)]
Fix for #24453: Missing delete statement.

8 years agoown recent commit broke this python import:
Campbell Barton [Sun, 31 Oct 2010 13:17:39 +0000 (13:17 +0000)]
own recent commit broke this python import:
 from mathutils.geometry import PolyFill

I couldn't find a way for python's inittab to do this so just inserting mathutils.geometry into sys.modules manually.

8 years agoFix #23283: crash exiting blender player, IMB_exit got called twice.
Brecht Van Lommel [Sun, 31 Oct 2010 12:43:42 +0000 (12:43 +0000)]
Fix #23283: crash exiting blender player, IMB_exit got called twice.

8 years agoFix cmake building of blender player.
Brecht Van Lommel [Sun, 31 Oct 2010 12:31:15 +0000 (12:31 +0000)]
Fix cmake building of blender player.

8 years agobugfix: "glsl lamp not (directly) updated when there is no material in the object...
Dalai Felinto [Sun, 31 Oct 2010 12:12:57 +0000 (12:12 +0000)]
bugfix: "glsl lamp not (directly) updated when there is no material in the object" reported by Olivier Amrein
lamps require a depsgraph update.
There is no more need to ED_render_id_flush_update because this is called by the DAG_id_flush_update.
help (and the right fix) from Brecht.

8 years agoFix crashing running read full sample layers operator.
Brecht Van Lommel [Sun, 31 Oct 2010 11:51:10 +0000 (11:51 +0000)]
Fix crashing running read full sample layers operator.

8 years agostdint include needed on non-msvc platforms
Nathan Letwory [Sun, 31 Oct 2010 08:42:42 +0000 (08:42 +0000)]
stdint include needed on non-msvc platforms

8 years agorename and negate DISABLE_PYTHON --> WITH_PYTHON
Campbell Barton [Sun, 31 Oct 2010 04:11:39 +0000 (04:11 +0000)]
rename and negate DISABLE_PYTHON --> WITH_PYTHON

8 years agorename definition for enabling the game engine GAMEBLENDER==1 --> WITH_GAMEENGINE
Campbell Barton [Sun, 31 Oct 2010 03:20:33 +0000 (03:20 +0000)]
rename definition for enabling the game engine GAMEBLENDER==1 --> WITH_GAMEENGINE

8 years agoLock to Cursor
Nathan Letwory [Sun, 31 Oct 2010 01:18:26 +0000 (01:18 +0000)]
Lock to Cursor
Patch by Dan Eicher. In 3dview properties you can enable this. Rotating view then uses cursor as pivot point. Note that with this option enabled just relocating the 3d cursor also changes the 3dview.

Sebastian K├Ânig: "Now the 3d cursor is actually useful" (sitting next to me while applying patch at bconf hostel)

8 years agobuilding the BGE without bullet works again.
Campbell Barton [Sun, 31 Oct 2010 01:04:31 +0000 (01:04 +0000)]
building the BGE without bullet works again.

8 years agodont build blender/kernel if the game engines disabled.
Campbell Barton [Sun, 31 Oct 2010 00:56:46 +0000 (00:56 +0000)]
dont build blender/kernel if the game engines disabled.

8 years agoMinor speedups for 3D view text drawing ~10-15% improved frame-rate with particle...
Campbell Barton [Sat, 30 Oct 2010 23:02:38 +0000 (23:02 +0000)]
Minor speedups for 3D view text drawing ~10-15% improved frame-rate with particle display.
- ascii text drawing functions, slightly faster since they dont have to do hash lookups & utf8 conversions for each char.
- used ascii drawing functions for the view3d's number display.
- each text item was using fixed 128 chars, now only allocate the string length needed.

8 years agoSequence editor code cleanup
Janne Karhu [Sat, 30 Oct 2010 21:55:17 +0000 (21:55 +0000)]
Sequence editor code cleanup
* The logic in some parts of the sequencer code was rather cryptic, so I cleaned it up a bit.
* There should be no functional changes what so ever from these changes.

8 years agofix for own mistake with mat4_to_loc_rot_size(), flipping the scale on negative matri...
Campbell Barton [Sat, 30 Oct 2010 19:52:40 +0000 (19:52 +0000)]
fix for own mistake with mat4_to_loc_rot_size(), flipping the scale on negative matrix isn't correct.

8 years agochange mat4_to_eulO, mat3_to_eulO to calculate 2 rotations and return the smallest...
Campbell Barton [Sat, 30 Oct 2010 19:29:11 +0000 (19:29 +0000)]
change mat4_to_eulO, mat3_to_eulO to calculate 2 rotations and return the smallest one.
mat4_to_eul & mat3_to_eul are already working this way.

Without this we get problems with constraints, eg:
 rotation on the Y axis over 90d can be represented by setting the X and Z to -PI, Y would decrease to 0 (infact 180d).

8 years agothe pivot constraint was translating when the pivot was offset along the rotation...
Campbell Barton [Sat, 30 Oct 2010 18:42:11 +0000 (18:42 +0000)]
the pivot constraint was translating when the pivot was offset along the rotation axis.
fixed by projecting the pivot along the axis of rotation and subtracting this from the pivot.

8 years agoFix for [#24458] Problem with Axis Angle rotation
Janne Karhu [Sat, 30 Oct 2010 17:42:08 +0000 (17:42 +0000)]
Fix for [#24458] Problem with Axis Angle rotation
* Added checks to handle zero axis vector.

8 years agowarning/portability fixes.
Campbell Barton [Sat, 30 Oct 2010 17:16:37 +0000 (17:16 +0000)]
warning/portability fixes.

8 years agoFix for [#24448] User Preferences - Interface - Mini Axis - Brightness, none working?
Janne Karhu [Sat, 30 Oct 2010 17:13:03 +0000 (17:13 +0000)]
Fix for [#24448] User Preferences - Interface - Mini Axis - Brightness, none working?
* The axis draw function was changed by Campbell recently, but the brightness value was forgotten?
* Solved currently by mapping the brightness value to axis alpha.

8 years agoFix for [#23318] SEQUENCER EFFECT: Glow blur amount should be relative
Janne Karhu [Sat, 30 Oct 2010 15:20:48 +0000 (15:20 +0000)]
Fix for [#23318] SEQUENCER EFFECT: Glow blur amount should be relative

8 years ago== blender file format ==
Luca Bonavita [Sat, 30 Oct 2010 13:25:24 +0000 (13:25 +0000)]
== blender file format ==

Hello, from the bconf 2010 from Jeroen and Luca. Our first combined commit :)

Automatically create sdna documentations from Trunk.

Usage:
        blender2.5 -b -P BlendFileDnaExporter_25.py [-- [options]]
Options:
        --dna-keep-blend:      doesn't delete the produced blend file DNA export to html
        --dna-debug:           sets the logging level to DEBUG (lots of additional info)
        --dna-versioned'       saves version informations in the html and blend filenames
        --dna-overwrite-css'   overwrite dna.css, useful when modifying css in the script
Examples:
        default:       % blender2.5 -b -P BlendFileDnaExporter_25.py
        with options:  % blender2.5 -b -P BlendFileDnaExporter_25.py -- --dna-keep-blend --dna-debug

8 years agoInfo text for scene strips showing the frame range that's set in the scene
Janne Karhu [Sat, 30 Oct 2010 13:09:31 +0000 (13:09 +0000)]
Info text for scene strips showing the frame range that's set in the scene
* Related to bug report [#24329] scene length not updated in VSE
* This data is nice to have in the sequencer without having to go the actual scene that's added as a strip.

8 years agoFix for [#24374] VSE: Reassign Inputs ignores selection order.
Janne Karhu [Sat, 30 Oct 2010 12:04:00 +0000 (12:04 +0000)]
Fix for [#24374] VSE: Reassign Inputs ignores selection order.
* No way currently to know the order of effect inputs, so I added a swap operator for the inputs.
* Also added the effect inputs to the strip property panel (weren't even in rna before). These are not yet editable, but can be very helpful in determining what the inputs are if the strip is too short to see the name in the timeline.