blender.git
8 years agofix for crash opening the file selector twice with multiple windows open (when the...
Campbell Barton [Mon, 6 Jun 2011 00:42:36 +0000 (00:42 +0000)]
fix for crash opening the file selector twice with multiple windows open (when the mouse was over the inactive window).

8 years agoreplacing -> arrows by proper ASCII arrows on Transformation Constraint
Dalai Felinto [Sun, 5 Jun 2011 23:38:11 +0000 (23:38 +0000)]
replacing -> arrows by proper ASCII arrows on Transformation Constraint

Note: Text Editor doesn't support this chr(187) properly. I hardcoded and commented the ui file. I hope it's fine.

8 years agoFix [#27438] Volume Material Density Inaccuracy
Matt Ebb [Sun, 5 Jun 2011 22:35:37 +0000 (22:35 +0000)]
Fix [#27438] Volume Material Density Inaccuracy

Lower density limit for shading optimisation was set too high

8 years agoBake from multires mesh
Sergey Sharybin [Sun, 5 Jun 2011 20:54:04 +0000 (20:54 +0000)]
Bake from multires mesh
=======================

Added option to baked named "Bake From Multires" which is avaliable for
normals baking and displacement baking.

If this option is enabled, then no additional hi-res meshes and render
structures would be created . This saves plenty of memory and meshes
with millions of faces could be successfully baked in few minutes.

Baking happens from highest level against viewport subdivision level,
so workflow is following:
  - Set viewport level to level at which texture would be applied
    during final rendering.
  - Choose Displacement/Normals baking.
  - Enable "Bake From Multires" option.
  - You're ready to bake.

Displacement baker had aditional option named "Low Resolution Mesh".
This option is used to set if you want texture for realtime (games)
usage.

Internally it does the following:
  - If it's disabled, displacement is calculated from subdivided
    viewport level, so texture looks "smooth" (it's how default
    baked works).
  - If it's enabled, dispalcement is calculated against unsubdivided
    viewport levels. This leads to "scales". This isn;t useful for
    offline renders much, but very useful for creating game textures.

Special thanks to Morten Mikkelsen (aka sparky) for all mathematics
and other work he've done fr this patch!

8 years agofixed warning, signed/unsigned mismatch, blo/readfile.c line 1742
Jason Wilkins [Sun, 5 Jun 2011 18:00:24 +0000 (18:00 +0000)]
fixed warning, signed/unsigned mismatch, blo/readfile.c line 1742

8 years agooperator buttons get a red highlight when alert is set for the layout
Campbell Barton [Sun, 5 Jun 2011 17:02:57 +0000 (17:02 +0000)]
operator buttons get a red highlight when alert is set for the layout

8 years agoown commit r37199 gave problems with duplicating objects, use different fix.
Campbell Barton [Sun, 5 Jun 2011 15:29:50 +0000 (15:29 +0000)]
own commit r37199 gave problems with duplicating objects, use different fix.

8 years agofile selector now scales with DPI better
Campbell Barton [Sun, 5 Jun 2011 14:00:06 +0000 (14:00 +0000)]
file selector now scales with DPI better

8 years agocolorband and image header were ignoring DPI size
Campbell Barton [Sun, 5 Jun 2011 13:20:30 +0000 (13:20 +0000)]
colorband and image header were ignoring DPI size

8 years agoBugfix: new DPI-controlled UI size code was setting 'view2d re-init'
Ton Roosendaal [Sun, 5 Jun 2011 12:57:09 +0000 (12:57 +0000)]
Bugfix: new DPI-controlled UI size code was setting 'view2d re-init'
flag on ED_area_initialize(). This however was causing 2 problems;
- the view state got reset (popping window view back)
- the view2d operator polls failed (sliders didnt work)

This re-init was only needed for the headers though, limiting it
to these types of regions solves it.

8 years agopanel headers were not scaling with DPI properly
Campbell Barton [Sun, 5 Jun 2011 12:47:17 +0000 (12:47 +0000)]
panel headers were not scaling with DPI properly

8 years agoscale the file selector UI with the DPI, the region size can still be wrong though.
Campbell Barton [Sun, 5 Jun 2011 10:05:13 +0000 (10:05 +0000)]
scale the file selector UI with the DPI, the region size can still be wrong though.

8 years agoworkaround for supremely annoying UI glitch where you could accidentally hide the...
Campbell Barton [Sun, 5 Jun 2011 09:22:14 +0000 (09:22 +0000)]
workaround for supremely annoying UI glitch where you could accidentally hide the file selector header by accident.
using the logic - that a header taking up the full screen-area height will not have an action-zone added for resizing.

8 years agowith the new scalable UI. hard coded values were still used for resizing the headers...
Campbell Barton [Sun, 5 Jun 2011 09:00:36 +0000 (09:00 +0000)]
with the new scalable UI. hard coded values were still used for resizing the headers, with DPI of 56 the headers could not be un-hidden.

8 years agopy/drivers disable dont interning strings, no need really since this isnt done on...
Campbell Barton [Sun, 5 Jun 2011 08:18:37 +0000 (08:18 +0000)]
py/drivers disable dont interning strings, no need really since this isnt done on every execution.

8 years agocompile without splash and icons when WITH_HEADLESS is set.
Campbell Barton [Sun, 5 Jun 2011 07:55:18 +0000 (07:55 +0000)]
compile without splash and icons when WITH_HEADLESS is set.

8 years agofix [#27554] vertex group names
Campbell Barton [Sun, 5 Jun 2011 04:52:32 +0000 (04:52 +0000)]
fix [#27554] vertex group names
- duplicate vertex group names were not being checked for.
- also made the first duplicate end with .001 rather than .000

8 years agoSVN maintenance.
Guillermo S. Romero [Sun, 5 Jun 2011 00:10:20 +0000 (00:10 +0000)]
SVN maintenance.

8 years agoChanged "Convert" to "Convert to" since the first one is incorrect. Removed some...
Daniel Salazar [Sat, 4 Jun 2011 23:02:44 +0000 (23:02 +0000)]
Changed "Convert" to "Convert to" since the first one is incorrect. Removed some dots at the end of tooltips following the standard

8 years agoCode holiday commit:
Ton Roosendaal [Sat, 4 Jun 2011 17:03:46 +0000 (17:03 +0000)]
Code holiday commit:

- fix: user pref, window title was reset to 'Blender' on tab usage

- Undo history menu back:
  - name "Undo History"
  - hotkey alt+ctrl+z (alt+apple+z for mac)
  - works like 2.4x, only for global undo, editmode and particle edit.

- Menu scroll
  - for small windows or screens, popup menus now allow to display
    all items, using internal scrolling
  - works with a timer, scrolling 10 items per second when mouse
    is over the top or bottom arrow
  - if menu is too big to display, it now draws to top or bottom,
    based on largest available space.
  - also works for hotkey driven pop up menus.

- User pref "DPI" follows widget/layout size
  - widgets & headers now become bigger and smaller, to match
    'dpi' font sizes. Works well to match UI to monitor size.
  - note that icons can get fuzzy, we need better mipmaps for it

8 years agoCMake option 'WITH_HEADLESS' to build blender in headless mode (no x11/xlib) with...
Campbell Barton [Sat, 4 Jun 2011 14:12:55 +0000 (14:12 +0000)]
CMake option 'WITH_HEADLESS' to build blender in headless mode (no x11/xlib) with NULL ghost classe.

8 years agoedits to make these cmake files compatible with my own basic cmake parser which check...
Campbell Barton [Sat, 4 Jun 2011 11:06:41 +0000 (11:06 +0000)]
edits to make these cmake files compatible with my own basic cmake parser which checks for correctness in our files.

8 years agofix [#27568] Segmentation fault in Sequencer when adding an effect strip with python
Campbell Barton [Sat, 4 Jun 2011 10:39:04 +0000 (10:39 +0000)]
fix [#27568] Segmentation fault in Sequencer when adding an effect strip with python
disallow negative length effect strips.

8 years agoUI for texture space in mesh/curve/mball data properties
Daniel Salazar [Sat, 4 Jun 2011 08:09:34 +0000 (08:09 +0000)]
UI for texture space in mesh/curve/mball data properties

http://pasteall.org/pic/show.php?id=13244

8 years agoquiet 2 compiler warnings and update man page
Campbell Barton [Sat, 4 Jun 2011 03:07:56 +0000 (03:07 +0000)]
quiet 2 compiler warnings and update man page

8 years agoFix for linux buildslaves. Now they should be able to compile branches.
Sergey Sharybin [Fri, 3 Jun 2011 21:36:39 +0000 (21:36 +0000)]
Fix for linux buildslaves. Now they should be able to compile branches.

8 years agoBuildBot: various changes to support building branches.
Brecht Van Lommel [Fri, 3 Jun 2011 20:44:23 +0000 (20:44 +0000)]
BuildBot: various changes to support building branches.

8 years agoBugFix: [#27556] Replace mesh for gfx in "Edit Object" actuator act illogically ...
Dalai Felinto [Fri, 3 Jun 2011 07:53:55 +0000 (07:53 +0000)]
BugFix: [#27556] Replace mesh for gfx in "Edit Object" actuator act illogically + other booleans that are flipped
Now I think we are all good. We still have a few actuators that were using TOGN before but that I didn't make as negative_boolean.

All fixed now:
- parent actuator
- edit object actuator
- action actuator
- shape actuator

8 years agoFix for [#27461] Particle Instance modifier doesn't work correctly with Hair Dynamics.
Janne Karhu [Fri, 3 Jun 2011 05:51:39 +0000 (05:51 +0000)]
Fix for [#27461] Particle Instance modifier doesn't work correctly with Hair Dynamics.
* Wrong matrix used for dynamic hair.

8 years agodisable python/string enum duplication from last commit because the array of duplicat...
Campbell Barton [Fri, 3 Jun 2011 04:39:18 +0000 (04:39 +0000)]
disable python/string enum duplication from last commit because the array of duplicated strings can be freed and the pointers to the strings referenced still, the problem with python freeing strings that RNA references remains.

8 years agowhen making the C/RNA copy of the python enum, duplicate all strings since theres...
Campbell Barton [Fri, 3 Jun 2011 04:21:41 +0000 (04:21 +0000)]
when making the C/RNA copy of the python enum, duplicate all strings since theres no guarantee python wont free them immediately after, though in practice this isn't so common.

8 years agopre-allocate the array when converting py/rna enums, also fix for memory leak with...
Campbell Barton [Fri, 3 Jun 2011 03:19:22 +0000 (03:19 +0000)]
pre-allocate the array when converting py/rna enums, also fix for memory leak with bad values.

8 years agoFix for [#27562] audaspace not playing files in blenderplayer
Joerg Mueller [Thu, 2 Jun 2011 23:25:38 +0000 (23:25 +0000)]
Fix for [#27562] audaspace not playing files in blenderplayer

blenderplayer wasn't initialising ffmpeg

This might also fix [#27558] GE Sound works in Blender but not in runtimes

8 years agoQuiet warnings for picky compilers.
Campbell Barton [Thu, 2 Jun 2011 23:10:05 +0000 (23:10 +0000)]
Quiet warnings for picky compilers.

8 years agoFix related to #27309: group nodes with a linked datablock that was missing would...
Brecht Van Lommel [Thu, 2 Jun 2011 17:34:01 +0000 (17:34 +0000)]
Fix related to #27309: group nodes with a linked datablock that was missing would crash.

8 years agoFix #27241: crash with point density texture when using particle age/velocity
Brecht Van Lommel [Thu, 2 Jun 2011 16:59:12 +0000 (16:59 +0000)]
Fix #27241: crash with point density texture when using particle age/velocity
fallof for object vertices.

8 years agoaddons now show expanded list again (since Brecht's commit now makes it fast)
Campbell Barton [Thu, 2 Jun 2011 15:21:47 +0000 (15:21 +0000)]
addons now show expanded list again (since Brecht's commit now makes it fast)
also add utility function for getting cleaned, unique names from python: bpy_extras.io_utils.unique_name(...)

8 years agoUI: fix two issues with expanded enum property buttons:
Brecht Van Lommel [Thu, 2 Jun 2011 14:18:51 +0000 (14:18 +0000)]
UI: fix two issues with expanded enum property buttons:
* they were too slow for dynamic python enums, calling the callback
  to list the items for each button, to get a tooltip
* enum tooltips sometimes were showing the same description twice

8 years agofix for [#27410] Manual save kills actual .blend file if disk space is low
Andrea Weikert [Thu, 2 Jun 2011 12:44:59 +0000 (12:44 +0000)]
fix for [#27410] Manual save kills actual .blend file if disk space is low
- moved do_history into WM_write_file after successful write of .blend@ temporary file
- Added new file flag, to avoid writing history on writing the startup.blend, autosave files and undo.

Thanks Campbell, Brecht for review!

8 years agocommitted this by mistake.
Campbell Barton [Thu, 2 Jun 2011 09:04:07 +0000 (09:04 +0000)]
committed this by mistake.

8 years agofix [#27557] Linked object (camera) should not be able to set position by using camer...
Campbell Barton [Thu, 2 Jun 2011 08:55:26 +0000 (08:55 +0000)]
fix [#27557] Linked object (camera) should not be able to set position by using camera to view operator

8 years agofix [#27553] Weird resulsts when animating opacity on (color) strip
Campbell Barton [Thu, 2 Jun 2011 08:45:28 +0000 (08:45 +0000)]
fix [#27553] Weird resulsts when animating opacity on (color) strip

8 years agomathutils support for color arithmetic, also some minor whitespace edits.
Campbell Barton [Thu, 2 Jun 2011 08:29:16 +0000 (08:29 +0000)]
mathutils support for color arithmetic, also some minor whitespace edits.

8 years agoFix #27539: Sculpt data is lost after editing base mesh
Sergey Sharybin [Thu, 2 Jun 2011 04:58:27 +0000 (04:58 +0000)]
Fix #27539: Sculpt data is lost after editing base mesh

Face's totdisp was set to correct value, but memory hasn't been
allocated for disps. Handle this in multires_topology_changed(),
so the whole MDISPS layer wouldn't be totally re-allocated when
applying displacement.

8 years agoupdate to glew 1.6 from 1.5.8
Campbell Barton [Thu, 2 Jun 2011 00:05:54 +0000 (00:05 +0000)]
update to glew 1.6 from 1.5.8

8 years agouninitialized variable was used when ensuring mirrored vertex groups.
Campbell Barton [Wed, 1 Jun 2011 23:55:49 +0000 (23:55 +0000)]
uninitialized variable was used when ensuring mirrored vertex groups.

8 years agoFix #27550: texture node editor header was still showing texture datablock
Brecht Van Lommel [Wed, 1 Jun 2011 16:17:38 +0000 (16:17 +0000)]
Fix #27550: texture node editor header was still showing texture datablock
selector even if there is no active texture slot or node, now it's disabled
in that case.

8 years agoUI: template_ID now takes into account if the property is editable.
Brecht Van Lommel [Wed, 1 Jun 2011 16:13:48 +0000 (16:13 +0000)]
UI: template_ID now takes into account if the property is editable.

8 years agoFix #27490: export key configuration gave error when trying to export
Brecht Van Lommel [Wed, 1 Jun 2011 14:35:14 +0000 (14:35 +0000)]
Fix #27490: export key configuration gave error when trying to export
properties from an unknown (e.g. removed) operator.

8 years agoFix #27481: windows uninstaller could remove files unrelated to blender
Brecht Van Lommel [Wed, 1 Jun 2011 13:13:55 +0000 (13:13 +0000)]
Fix #27481: windows uninstaller could remove files unrelated to blender
when installing to a folder that already existed. Now the uninstaller
will remove only the files it has installed, and leave any other files
in the installation directory intact.

8 years agoFix #27541: f-curve generator modifier file read missed endian switch,
Brecht Van Lommel [Wed, 1 Jun 2011 13:10:37 +0000 (13:10 +0000)]
Fix #27541: f-curve generator modifier file read missed endian switch,
found by Guillaume Roguez.

8 years agoMaterial nodes were checking the nodestack->hasinput flag to determin whether the...
Lukas Toenne [Tue, 31 May 2011 17:54:48 +0000 (17:54 +0000)]
Material nodes were checking the nodestack->hasinput flag to determin whether the original material settings or the node input data would be used. This causes trouble when the input data is not the direct input constant of the node nor a direct link in the same tree (i.e. a group socket). Just checks if sockets are linked now (not very nice, but not hackier than the rest of that node).

Fixes bug #27511.

8 years agofix [#27514] Fix Bug 27510 Color key hue flipping error (composite node)
Campbell Barton [Tue, 31 May 2011 14:06:29 +0000 (14:06 +0000)]
fix [#27514] Fix Bug 27510 Color key hue flipping error (composite node)

8 years agoButton value reset:
Brecht Van Lommel [Tue, 31 May 2011 09:56:38 +0000 (09:56 +0000)]
Button value reset:
* shortcut key changed from numpad 0 to delete.
* fix missing undo push, now it calls the operator.

Patch by Damir Prebeg, thanks!

8 years agofix for mistake in case insensitive image load.
Campbell Barton [Tue, 31 May 2011 09:55:50 +0000 (09:55 +0000)]
fix for mistake in case insensitive image load.

8 years agofix for recent cmake changes
Campbell Barton [Tue, 31 May 2011 09:27:33 +0000 (09:27 +0000)]
fix for recent cmake changes

8 years agoMake sure correct path separator is used.
Nathan Letwory [Tue, 31 May 2011 08:50:20 +0000 (08:50 +0000)]
Make sure correct path separator is used.

8 years agotag unused rna args.
Campbell Barton [Tue, 31 May 2011 02:14:25 +0000 (02:14 +0000)]
tag unused rna args.

8 years agocmake maintenance
Campbell Barton [Tue, 31 May 2011 01:15:44 +0000 (01:15 +0000)]
cmake maintenance
blender_add_lib now takes a separate include argument to suppress warnings in system includes (mostly ffmpeg & python).
also only build wm_apple.c on apple+carbon configuration.

8 years agostartup.blend: default ffmpeg output audio bitrate changed to 192.
Brecht Van Lommel [Mon, 30 May 2011 18:57:28 +0000 (18:57 +0000)]
startup.blend: default ffmpeg output audio bitrate changed to 192.

8 years agoBGE: fix bug #26775, crash when physics constraint is defined on non-active objects...
Benoit Bolsee [Mon, 30 May 2011 15:40:01 +0000 (15:40 +0000)]
BGE: fix bug #26775, crash when physics constraint is defined on non-active objects. Patch provided by Sergey Sharybin, verified and applied.

8 years agomissed this import when moving load image function.
Campbell Barton [Mon, 30 May 2011 12:19:30 +0000 (12:19 +0000)]
missed this import when moving load image function.

8 years agoFix #27522: crash when closing new render window with render error message
Brecht Van Lommel [Mon, 30 May 2011 11:44:28 +0000 (11:44 +0000)]
Fix #27522: crash when closing new render window with render error message
showing in the main window.

8 years agocmake formatting adjustment, no functional change.
Campbell Barton [Mon, 30 May 2011 10:51:37 +0000 (10:51 +0000)]
cmake formatting adjustment, no functional change.

8 years agofix for cmakes windows install target, was extracting python 4 times, note install...
Campbell Barton [Mon, 30 May 2011 10:39:18 +0000 (10:39 +0000)]
fix for cmakes windows install target, was extracting python 4 times, note install(CODE... doesnt support CONFIGURATIONS setting.

8 years agoMoving the letterbox clear for the embedded player so it only clears when it needs...
Mitchell Stokes [Sun, 29 May 2011 18:09:38 +0000 (18:09 +0000)]
Moving the letterbox clear for the embedded player so it only clears when it needs to. Thanks to Juha Mäki-Kanto for the tip.

8 years ago[#25886] Skeleton Sketching - Unclear UI for converting sketches into bones
Martin Poirier [Sun, 29 May 2011 16:04:09 +0000 (16:04 +0000)]
[#25886] Skeleton Sketching - Unclear UI for converting sketches into bones

Thanks Ronan Ducluzeau for the fix and Jason van Gumster for the report.

8 years agoFix #27392: boolean intersect's
Sergey Sharybin [Sun, 29 May 2011 15:53:38 +0000 (15:53 +0000)]
Fix #27392: boolean intersect's

It was lag of optimization logic, which always retuns object's derivedMesh
if one of of boolean operation's meshes has got no faces.

Actually, result depends on operation and which mesh has got no faces.

Added small utility function to handle this.

8 years agoaccess pythons code object directly rather than attribute access.
Campbell Barton [Sun, 29 May 2011 11:05:52 +0000 (11:05 +0000)]
access pythons code object directly rather than attribute access.

8 years agoFixing the initglobals leak in the Blenderplayer (G.main reference was being reassign...
Mitchell Stokes [Sun, 29 May 2011 04:15:35 +0000 (04:15 +0000)]
Fixing the initglobals leak in the Blenderplayer (G.main reference was being reassigned before it was freed).

8 years agoGeneral error in coderivative for orthogonal camera. Culprit of new bump failing...
Daniel Salazar [Sat, 28 May 2011 21:53:07 +0000 (21:53 +0000)]
General error in coderivative for orthogonal camera. Culprit of new bump failing on orthogonal cameras; bug #27492

Commiting bug kill by Sparky

8 years agoDisabling xinput wasn't done completely.
Campbell Barton [Sat, 28 May 2011 15:34:02 +0000 (15:34 +0000)]
Disabling xinput wasn't done completely.

8 years agoSilence some unused-but-set-variable warnings.
Sergey Sharybin [Sat, 28 May 2011 14:52:28 +0000 (14:52 +0000)]
Silence some unused-but-set-variable warnings.

And small optimization for text search function :)

8 years agoFix #27505: Text Editor always indent next line when a " is found (which is not alway...
Sergey Sharybin [Sat, 28 May 2011 14:40:42 +0000 (14:40 +0000)]
Fix #27505: Text Editor always indent next line when a " is found (which is not always correct)

Do not indent if there's any non-space character after colon.

This only makes life a bit easier, but it's still not 100% correct indentation
strategy. For example when colon is inside non-closed string or so.
Also there's not indentation for { and un-indentation for }.

Handling such cases would require much smarter strategy..

8 years ago== FFMPEG ==
Peter Schlaile [Sat, 28 May 2011 14:16:56 +0000 (14:16 +0000)]
== FFMPEG ==

Did some fine-tuning for AVOption -> AVOption2 crazyness

8 years agofixed "rather then" -> "rather than" typos all over the place
M.G. Kishalmi [Sat, 28 May 2011 13:11:24 +0000 (13:11 +0000)]
fixed "rather then" -> "rather than" typos all over the place

8 years agorearranged previous patch to compile with C89
Jason Wilkins [Sat, 28 May 2011 12:33:53 +0000 (12:33 +0000)]
rearranged previous patch to compile with C89
conversion to double probably not needed
better comments

8 years agoIntroduce vars before using them, otherwise compile fails (reminder: with C, present all
Nathan Letwory [Sat, 28 May 2011 12:11:39 +0000 (12:11 +0000)]
Introduce vars before using them, otherwise compile fails (reminder: with C, present all
your vars at the begin of the scope _before any other statement_).

8 years agowrong rna access function used in node UI
Campbell Barton [Sat, 28 May 2011 12:04:56 +0000 (12:04 +0000)]
wrong rna access function used in node UI

8 years agoFix: The radial control would fail, in sculpt mode, to set size if object-space sizin...
Jason Wilkins [Sat, 28 May 2011 11:30:21 +0000 (11:30 +0000)]
Fix: The radial control would fail, in sculpt mode, to set size if object-space sizing was enabled.

This was caused because a small part of sculpt's radial control code did not make it into the new version.  The old code would set a new object-space size by scaling it proportional to how much the new screen-space size was changed.

The solution I implement here is to do the same scaling inside the RNA callbacks.  This way, users of those properties do not have to worry about inconsistency.

I added a comment warning that brush_set_size, brush_set_unified_size, brush_unprojected_radius, and brush_set_unprojected_radius do not guarantee consistency because it is not always possible to precisely know what the new unprojected radius is in all contexts where you might set the size.

I would implement the consistency check at the lower level (in those listed functions) but at this time I think it needs to be looked at to make sure that won't cause problems.  In addition, I am not sure that scaling by the ratio of change is strictly correct in all cases.

In any case, this at least fixes the immediate problem.

8 years agobetter error reporting for seq_swap()
M.G. Kishalmi [Sat, 28 May 2011 09:59:34 +0000 (09:59 +0000)]
better error reporting for seq_swap()

8 years agomove load_image into image_utils and add some docstrings to bpy_extras module.
Campbell Barton [Sat, 28 May 2011 09:34:45 +0000 (09:34 +0000)]
move load_image into image_utils and add some docstrings to bpy_extras module.

8 years agobugfix for: [#26753] PhysicsConstraints ID trouble on 64bit (linux at least).
Dalai Felinto [Sat, 28 May 2011 08:16:34 +0000 (08:16 +0000)]
bugfix for: [#26753] PhysicsConstraints ID trouble on 64bit (linux at least).
[the problem also affected OSX]

PhysicsId are Long, not ints (see PyObject* KX_GameObject::PyGetPhysicsId() )

There is a reference in the code to use PyCapsule instead of int. I'm not sure
about that. This patch at least stops the crashes
(update: I talked with Campbell and he repeated that PyCapsule are better, but if long is working it's fine for now).

8 years ago- generate sphinx docs for bpy_extras module
Campbell Barton [Sat, 28 May 2011 07:47:58 +0000 (07:47 +0000)]
- generate sphinx docs for bpy_extras module
- add in support to doc generator for automatically generating docs for submodules.

8 years agoinclude ffmpeg_compat header in cmake source list.
Campbell Barton [Sat, 28 May 2011 04:53:17 +0000 (04:53 +0000)]
include ffmpeg_compat header in cmake source list.

8 years agofix for embeded BGE viewport broken when not using letterboxing
Dalai Felinto [Sat, 28 May 2011 01:29:56 +0000 (01:29 +0000)]
fix for embeded BGE viewport broken when not using letterboxing
this was broken after rev.36787 (api rewritten)
own reported bug, nowhere in the track (just to mess up with the bug fixing statistics)

8 years ago== FFMPEG ==
Peter Schlaile [Sat, 28 May 2011 00:07:33 +0000 (00:07 +0000)]
== FFMPEG ==

Small fix for a very old bug in swscaler color space support detection.

8 years ago== FFMPEG ==
Peter Schlaile [Fri, 27 May 2011 23:46:47 +0000 (23:46 +0000)]
== FFMPEG ==
Revert of "SVN commit: /data/svn/bf-blender [36957]
trunk/blender/source/gameengine/ VideoTexture/VideoFFmpeg.cpp: fix for
ffmpeg linking in BGE ( patch by Jens Verwiebe (jensverwiebe) over IRC)"

Sorry folks, that patch breaks current ffmpeg GIT version.

Good news: it's all handled now automagically by ffmpeg_compat.h in
intern/ffmpeg

so: everything should be fine and dandy for very old and very new versions.

8 years ago== FFMPEG ==
Peter Schlaile [Fri, 27 May 2011 23:33:40 +0000 (23:33 +0000)]
== FFMPEG ==

Added central compatibility header file, which enables blender to compile
against very old ffmpeg versions as well as very new versions using the
*NEW* API. (Old API functions are simulated using macros and inline functions)

Added a whole lot of additional checks, tested against 6 different versions
down the timeline, hopefully, now finally all is well.

8 years agofix for ffmpeg linking in BGE (patch by Jens Verwiebe (jensverwiebe) over IRC)
Dalai Felinto [Fri, 27 May 2011 21:13:44 +0000 (21:13 +0000)]
fix for ffmpeg linking in BGE (patch by Jens Verwiebe (jensverwiebe) over IRC)
- av_parse_video_rate(&frameRate, rateStr);
+ av_parse_video_frame_rate(&frameRate, rateStr);

8 years agoAttempted fix for #27482: game engine running slow due to revision 36698 which
Brecht Van Lommel [Fri, 27 May 2011 16:20:49 +0000 (16:20 +0000)]
Attempted fix for #27482: game engine running slow due to revision 36698 which
fixed frame colors for letterbox drawing (happens when in camera view).

Cause is unclear, seems some sort of strange graphics driver thing on 32 bit.
Changes are a fix for the incorrect usage of glViewport, and avoiding the extra
clear if it's not needed.

8 years agoWindows installer and Path changes, fixing various issues:
Brecht Van Lommel [Fri, 27 May 2011 09:57:53 +0000 (09:57 +0000)]
Windows installer and Path changes, fixing various issues:

* Windows installer not working for non-admin users and multiple users
* Addon scripts not installing next to user configuration
* Portable install not being taken into account in all places

The main problem was the windows installer was installing system scripts in
AppData next to the user configuration directory, which is not shared between
users. Now these are installed in ProgramFiles, and only addon scripts added
by the users go to AppData.

On all platforms, addon scripts were sometimes getting installed between
system scripts, because the scripts folder in the executable directory was
given precedence over the user configuration folder, that is no longer done
now. So addons now behave like user configuration, they are preserved even
if you download a newer build of the same blender version.

If you have an installation of 2.57 on windows, the addon install location
will not change until we do the version bump to 2.58, to avoid conflicts with
the existing the installed 2.57 version.

The old behavior of giving precedence to the local folder was done to support
portable install, where all configuration is written to the local folder. This
is now implemented differently: if and only if a "config" folder exists in the
local folder, portable install will be assumed, and files will only be written
to that local folder.

8 years ago== FFMPEG ==
Peter Schlaile [Fri, 27 May 2011 07:47:42 +0000 (07:47 +0000)]
== FFMPEG ==

Fixed and added additional ffmpeg cruft checking. Oh dear.

8 years ago== FFMPEG ==
Peter Schlaile [Thu, 26 May 2011 23:51:02 +0000 (23:51 +0000)]
== FFMPEG ==

... and another funny version patch, since OpenSuse obviously used some version "in-between"

8 years agoown recent commits caused crash with the grease pencil in camera view, always pass...
Campbell Barton [Thu, 26 May 2011 23:29:40 +0000 (23:29 +0000)]
own recent commits caused crash with the grease pencil in camera view, always pass rv3d argument now.
also found a bug where hex_to_rgb could use un-initialized memory.

8 years ago== FFMPEG ==
Peter Schlaile [Thu, 26 May 2011 23:19:15 +0000 (23:19 +0000)]
== FFMPEG ==

Added some API compatibility code again, since some API-changes weren't even documented
(they even didn't do a proper version-bump, arghh!)

If it breaks again, please tell!

8 years agomissed this in recent commit.
Campbell Barton [Thu, 26 May 2011 22:48:06 +0000 (22:48 +0000)]
missed this in recent commit.

8 years agoweight paint mirror, move duplicate code into a function.
Campbell Barton [Thu, 26 May 2011 22:20:29 +0000 (22:20 +0000)]
weight paint mirror, move duplicate code into a function.

8 years ago== FFMPEG ==
Peter Schlaile [Thu, 26 May 2011 21:57:02 +0000 (21:57 +0000)]
== FFMPEG ==

* removed a lot of old cruft code for ancient ffmpeg versions
* made it compile again against latest ffmpeg / libav GIT
  (also shouldn't break distro ffmpegs, since those API changes
  have been introduced over a year ago. If it nevertheless breaks,
  please send me an email)

8 years agoremove BLI_streq() since it was hardly used, also replace string search with BLI_find...
Campbell Barton [Thu, 26 May 2011 21:04:01 +0000 (21:04 +0000)]
remove BLI_streq() since it was hardly used, also replace string search with BLI_findstring().