blender.git
10 years agobuilding without bullet didnt work
Campbell Barton [Wed, 30 Sep 2009 21:31:08 +0000 (21:31 +0000)]
building without bullet didnt work

10 years agoUpdate MSVC project files
Benoit Bolsee [Wed, 30 Sep 2009 19:51:12 +0000 (19:51 +0000)]
Update MSVC project files

10 years agoRender & Compositing Thread Fixes
Brecht Van Lommel [Wed, 30 Sep 2009 18:18:32 +0000 (18:18 +0000)]
Render & Compositing Thread Fixes

* Rendering twice or more could crash layer/pass buttons.
* Compositing would crash while drawing the image.
* Rendering animations could also crash drawing the image.
* Compositing could crash
* Starting to rendering while preview render / compo was
  still running could crash.
* Exiting while rendering an animation would not abort the
  renderer properly, making Blender seemingly freeze.
* Fixes theoretically possible issue with setting malloc
  lock with nested threads.
* Drawing previews inside nodes could crash when those nodes
  were being rendered at the same time.

There's more crashes, manipulating the scene data or undo can
still crash, this commit only focuses on making sure the image
buffer and render result access is thread safe.

Implementation:
* Rather than assuming the render result does not get freed
  during render, which seems to be quite difficult to do given
  that e.g. the compositor is allowed to change the size of
  the buffer or output different passes, the render result is
  now protected with a read/write mutex.
* The read/write mutex allows multiple readers (and pixel
  writers) at the same time, but only allows one writer to
  manipulate the data structure.
* Added BKE_image_acquire_ibuf/BKE_image_release_ibuf to access
  images being rendered, cases where this is not needed (most
  code) can still use BKE_image_get_ibuf.
* The job manager now allows only one rendering job at the same
  time, rather than the G.rendering check which was not reliable.

10 years agoSVN maintenance.
Guillermo S. Romero [Wed, 30 Sep 2009 17:13:57 +0000 (17:13 +0000)]
SVN maintenance.

10 years agosvn merge https://svn.blender.org/svnroot/bf-blender/branches/blender2.4 -r23566...
Campbell Barton [Wed, 30 Sep 2009 13:58:21 +0000 (13:58 +0000)]
svn merge https://svn.blender.org/svnroot/bf-blender/branches/blender2.4 -r23566:23567

10 years agoCocoa port start:
Damien Plisson [Wed, 30 Sep 2009 08:47:39 +0000 (08:47 +0000)]
Cocoa port start:
GHOST*Cocoa.mm & .h files creation
First Cocoa version of GHOST_SystemCocoa.mm
CMake files update to allow optional (WITH_COCOA option) Cocoa version build - disabled by default
SCons files are not updated to allow Cocoa build (the ghost .mm files)

10 years agoAnimato: Bugfixes
Joshua Leung [Wed, 30 Sep 2009 04:59:14 +0000 (04:59 +0000)]
Animato: Bugfixes

* #19501: Only the first user of multi-user IPO's were getting converted to AnimData.
Now, this AnimData gets converted multiple times - once for each user. This will mean that multi-user actions will no longer be multi-user after conversion though, although this could be fixed manually if there really is such a need.

* #19503: Nasty memory leaks when duplicating objects with AnimData
Fixed a few little oversights made when coding the copying code for NLA-data (which resulted in exponential copying-loops of doom), and sanitised the AnimData copying code for ID-blocks to be simpler to manage.

10 years ago- rather then passing the python namespace dictionary to the controller function...
Campbell Barton [Tue, 29 Sep 2009 22:49:33 +0000 (22:49 +0000)]
- rather then passing the python namespace dictionary to the controller function get the namespace from the converter.
- renamed SetPythonDictionary() to SetPyNamespace()
- remove IsLight(), GetGameObjectType() existed before this but wasnt used for lights.

10 years agoRework of volume shading
Matt Ebb [Tue, 29 Sep 2009 22:01:32 +0000 (22:01 +0000)]
Rework of volume shading

After code review and experimentation, this commit makes some changes to the way that volumes are shaded. Previously, there were problems with the 'scattering' component, in that it wasn't physically correct - it didn't conserve energy and was just acting as a brightness multiplier. This has been changed to be more correct, so that as the light is scattered out of the volume, there is less remaining to penetrate through.

Since this behaviour is very similar to absorption but more useful, absorption has been removed and has been replaced by a 'transmission colour' - controlling the colour of light penetrating through the volume after it has been scattered/absorbed. As well as this, there's now 'reflection', a non-physically correct RGB multiplier for out-scattered light. This is handy for tweaking the overall colour of the volume, without having to worry about wavelength dependent absorption, and its effects on transmitted light. Now at least, even though there is the ability to tweak things non-physically, volume shading is physically based by default, and has a better combination of correctness and ease of use.

There's more detailed information and example images here:
http://wiki.blender.org/index.php/User:Broken/VolumeRendering

Also did some tweaks/optimisation:
* Removed shading step size (was a bit annoying, if it comes back, it will be in a different form)
* Removed phase function options, now just one asymmetry slider controls the range between back-scattering, isotropic scattering, and forward scattering. (note, more extreme values gives artifacts with light cache, will fix...)
* Disabled the extra 'bounce lights' from the preview render for volumes, speeds updates significantly
* Enabled voxeldata texture in preview render
* Fixed volume shadows (they were too dark, fixed by avoiding using the shadfac/AddAlphaLight stuff)

More revisions to come later...

10 years agooption to build the BGE without python, uses existing python check (cmake and scons)
Campbell Barton [Tue, 29 Sep 2009 21:42:40 +0000 (21:42 +0000)]
option to build the BGE without python, uses existing python check (cmake and scons)
when python is disabled videotextures are not built.

10 years agoFix link problem: Rename libed_preview -> libed_render
Diego Borghetti [Tue, 29 Sep 2009 20:26:06 +0000 (20:26 +0000)]
Fix link problem: Rename libed_preview -> libed_render

10 years agoSorry, three commits in one, became difficult to untangle..
Brecht Van Lommel [Tue, 29 Sep 2009 19:12:12 +0000 (19:12 +0000)]
Sorry, three commits in one, became difficult to untangle..

Editors Modules

* render/ module added in editors, moved the preview render code there and
  also shading related operators.
* physics/ module made more consistent with other modules. renaming files,
  making a single physics_ops.c for operators and keymaps. Also move all
  particle related operators here now.
* space_buttons/ now should have only operators relevant to the buttons
  specificially.

Updates & Notifiers

* Material/Texture/World/Lamp can now be passed to DAG_id_flush_update,
  which will go back to a callback in editors. Eventually these should
  be in the depsgraph itself, but for now this gives a unified call for
  doing updates.
* GLSL materials are now refreshed on changes. There's still various
  cases missing,
* Preview icons now hook into this system, solving various update cases
  that were missed before.
* Also fixes issue in my last commit, where some preview would not render,
  problem is avoided in the new system.

Icon Rendering

* On systems with support for non-power of two textures, an OpenGL texture
  is now used instead of glDrawPixels. This avoids problems with icons get
  clipped on region borders. On my Linux desktop, this gives an 1.1x speedup,
  and on my Mac laptop a 2.3x speedup overall in redrawing the full window,
  with the default setup. The glDrawPixels implementation on Mac seems to
  have a lot of overhread.
* Preview icons are now drawn using proper premul alpha, and never faded so
  you can see them clearly.
* Also tried to fix issue with texture node preview rendering, globals can't
  be used with threads reliably.

10 years agoadding back changes from soc-2009-kaz branch.
Campbell Barton [Tue, 29 Sep 2009 15:27:00 +0000 (15:27 +0000)]
adding back changes from soc-2009-kaz branch.

10 years agoCopying scripts from 2.4x without 2.5x changes
Campbell Barton [Tue, 29 Sep 2009 15:16:22 +0000 (15:16 +0000)]
Copying scripts from 2.4x without 2.5x changes

10 years agohistory for these files was lost, will use "svn cp ....." to get the scripts from...
Campbell Barton [Tue, 29 Sep 2009 15:08:23 +0000 (15:08 +0000)]
history for these files was lost, will use "svn cp ....." to get the scripts from 2.4x and apply kazanbas's updates.

10 years agoFixed import scripts: OBJ, 3DS. 2 bugs still perist though: imported meshes appear...
Arystanbek Dyussenov [Tue, 29 Sep 2009 12:34:05 +0000 (12:34 +0000)]
Fixed import scripts: OBJ, 3DS. 2 bugs still perist though: imported meshes appear upside-down (foreach_set?) and materials don't import.

10 years agoFixed export scripts: 3DS, OBJ, X3D, FBX. These need testing now.
Arystanbek Dyussenov [Tue, 29 Sep 2009 12:16:58 +0000 (12:16 +0000)]
Fixed export scripts: 3DS, OBJ, X3D, FBX. These need testing now.

10 years agoFix for CMake/OS X, would fail to copy files to bundle sometimes,
Brecht Van Lommel [Tue, 29 Sep 2009 09:48:30 +0000 (09:48 +0000)]
Fix for CMake/OS X, would fail to copy files to bundle sometimes,
doing make twice would avoid this, but that's not very convenient.

10 years agoremove ray sensors own logic manager (now stored in parent class) + other minor changes.
Campbell Barton [Tue, 29 Sep 2009 07:51:54 +0000 (07:51 +0000)]
remove ray sensors own logic manager (now stored in parent class) + other minor changes.

10 years agobge player - stubs update
Dalai Felinto [Tue, 29 Sep 2009 05:22:44 +0000 (05:22 +0000)]
bge player - stubs update
*note in order to build blenderplayer with cmake+msvc one needs to comment all smoke references in stubs.c
- scons + msvc is building fine (raising some warnings for the smole references though)
- cmake in linux should be building as well (the smoke references were inserted in stubs to please this building environment IIRC)

10 years agoBugfix #19490: Adding UV texture, adds Vertex color instead
Joshua Leung [Tue, 29 Sep 2009 02:19:27 +0000 (02:19 +0000)]
Bugfix #19490: Adding UV texture, adds Vertex color instead

Seems to have been a copy+paste error (code for Vertex Color adding was pasted in place of texture paint). Restored the code from an earlier revision (from another file).

10 years agoRemoved the termporary defines added to make the Game Engine compile. Hopefully this...
Joshua Leung [Tue, 29 Sep 2009 01:52:54 +0000 (01:52 +0000)]
Removed the termporary defines added to make the Game Engine compile. Hopefully this fixes all of the cases which broke.

10 years agoAdding back more functionalities for transform orientations.
Martin Poirier [Mon, 28 Sep 2009 19:49:36 +0000 (19:49 +0000)]
Adding back more functionalities for transform orientations.

Create new orientation is now Ctrl-Alt-Space (Alt-Space is select orientation and the old ctrl-shift-c is taken by add constraints).

New orientation panel in 3d view sidebar (nkey) has operator buttons for select, create and delete. Eventually, this should become a list.

Note that orientation operators are missing notifiers to properly redraw the 3d view and its header properly.

10 years agoPreview icon rendering for menus now runs in a separate thread, to avoid
Brecht Van Lommel [Mon, 28 Sep 2009 18:33:45 +0000 (18:33 +0000)]
Preview icon rendering for menus now runs in a separate thread, to avoid
blocking the user when opening a menu. Material and texture buttons now
display these icons in the list. Also fixes #19387, icon and full preview
render at the same time would crash.

I'm not really convinced this is thread-safe, but on the other hand also
not sure regular preview render is really thread-safe yet.

10 years agoFix python error in boids panel, missing variable psys.
Brecht Van Lommel [Mon, 28 Sep 2009 16:13:23 +0000 (16:13 +0000)]
Fix python error in boids panel, missing variable psys.

10 years agoFix #19483: error using FBX export script, diffuse_reflection
Brecht Van Lommel [Mon, 28 Sep 2009 16:11:55 +0000 (16:11 +0000)]
Fix #19483: error using FBX export script, diffuse_reflection
changed to diffuse_intensity.

10 years agoFix potential crash for file operators that don't define
Brecht Van Lommel [Mon, 28 Sep 2009 16:11:06 +0000 (16:11 +0000)]
Fix potential crash for file operators that don't define
a "path" property, now it will just give a warning.

10 years agoFix compile problem on OS X Snow Leopard. The Mac code for dynamic
Brecht Van Lommel [Mon, 28 Sep 2009 16:05:34 +0000 (16:05 +0000)]
Fix compile problem on OS X Snow Leopard. The Mac code for dynamic
library loading was using some non-public OS X functions, which give
linking issues for me. Since OS X 10.3 standard unix dlopen() is
supported, so I just removed this code, we don't support earlier
versions anyway.

10 years agoFix drawing of MENU buttons with only an icon, was not aligned right
Brecht Van Lommel [Mon, 28 Sep 2009 15:59:09 +0000 (15:59 +0000)]
Fix drawing of MENU buttons with only an icon, was not aligned right
and showing unneeded triangles (+ buttons in Boids Brain).

10 years ago* Copy() -> Clone() (even though these hopefully will be obliterated from extern...
Nathan Letwory [Mon, 28 Sep 2009 15:49:26 +0000 (15:49 +0000)]
* Copy() -> Clone() (even though these hopefully will be obliterated from extern/ soon)
* remove reference to docs SConscript
* python dbg commit - somehow this one was left uncommitted when I was working on r23465 and r23464

10 years agoFile paths: use release/ for scripts if possible again, this got
Brecht Van Lommel [Mon, 28 Sep 2009 15:47:05 +0000 (15:47 +0000)]
File paths: use release/ for scripts if possible again, this got
changed with the file path changes, the reason to check this first
is that it allows to edit py scripts without having to run the
build system for each change.

10 years agoFix #19479: ctrl+N could temporarily freeze the window when user
Brecht Van Lommel [Mon, 28 Sep 2009 15:34:15 +0000 (15:34 +0000)]
Fix #19479: ctrl+N could temporarily freeze the window when user
preferences were saved from a separate window. Missing transfor of
active window state to the new window.

10 years agoFix #19477: transform manipulator did not work correct with
Brecht Van Lommel [Mon, 28 Sep 2009 15:14:52 +0000 (15:14 +0000)]
Fix #19477: transform manipulator did not work correct with
quad view, got wrong context.

10 years agoFix #19468: particle mode crash in transform, when there are
Brecht Van Lommel [Mon, 28 Sep 2009 14:51:42 +0000 (14:51 +0000)]
Fix #19468: particle mode crash in transform, when there are
no editable particles.

10 years agoFix #19453: rendering with mesh in edit mode would put the object
Brecht Van Lommel [Mon, 28 Sep 2009 14:40:37 +0000 (14:40 +0000)]
Fix #19453: rendering with mesh in edit mode would put the object
partially back in object mode, disabling e.g. X delete.

10 years agoFix #19351: items in outliner disappear prematurely. Note icons
Brecht Van Lommel [Mon, 28 Sep 2009 14:33:38 +0000 (14:33 +0000)]
Fix #19351: items in outliner disappear prematurely. Note icons
still disappear too soon, but this is an issue in the icon system,
same happens on all buttons, will have a fix for this later.

10 years agoRNA
Brecht Van Lommel [Mon, 28 Sep 2009 14:28:45 +0000 (14:28 +0000)]
RNA
* Move mesh API functions to mesh_data.c, would like to keep
  RNA layer fairly thin, any non-trivial functions shoud be
  in their modules.
* Replace mesh.create_copy by generic id.copy.
* Fix #19250: Mesh.add_geometry() in editmode fails silently,
  now gives an error.

10 years agomissing Del key in the keymaps where Xkey was used
Campbell Barton [Mon, 28 Sep 2009 12:33:52 +0000 (12:33 +0000)]
missing Del key in the keymaps where Xkey was used

10 years agoadd temp defines to keep the game engine building, should be fixed properly.
Campbell Barton [Mon, 28 Sep 2009 12:20:56 +0000 (12:20 +0000)]
add temp defines to keep the game engine building, should be fixed properly.
fix implicit declaration too.

10 years agoFile Browser fixes:
Brecht Van Lommel [Mon, 28 Sep 2009 12:10:23 +0000 (12:10 +0000)]
File Browser fixes:

* The code to draw only visible items was not working, giving slow
  performance with many files (bug #19469).
* Fix detailed list display on non-windows, would give overlapping text.
* Fix folders with many files not displaying all items, changed short to
  int in various places, was overflowing.
* Recreate layout on area resizes, file view gets out of sync otherwise.
* Workaround for v2d height not being correct with image display due to
  scrollers.
* Fix view2d code to compute minimum scroller size, this would make the
  scroller go outside of its bounds.

10 years agojpeg2000 presets were broken.
Campbell Barton [Mon, 28 Sep 2009 12:10:13 +0000 (12:10 +0000)]
jpeg2000 presets were broken.

10 years agoCompile fix for GameEngine
Joshua Leung [Mon, 28 Sep 2009 11:29:07 +0000 (11:29 +0000)]
Compile fix for GameEngine

10 years agoDurian Feature Request: Rotation Modes for Objects
Joshua Leung [Mon, 28 Sep 2009 10:19:20 +0000 (10:19 +0000)]
Durian Feature Request: Rotation Modes for Objects

This (biggish) commit generalises the rotation modes functionality added for Bones, allowing Objects to use the various Euler Rotation orders, Axis-Angle, and Quaternion rotation representations.

I've also cleaned up the nomenclature of the rotation-related settings so that the naming styles are more consistent with each other. Unfortunately, this will break all files involving object or bone rotation animation made in 2.5 versions (2.4x will still get correctly converted).

General Notes:
* By default, Objects still default to using Eulers, while Bones will use Quaternions by default still.
* I've fixed all areas that I'm currently aware of to work with these changes. However, there are probably a few places where I've missed a few changes (i.e. auto-keyframing will need attention later).
* Removed the old "IPO-Keys" stuff from Transform code. I'm unlikely to restore this in the near future, and trying to fix that to include support for this commit would have been too much work.

10 years agosvn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r23427:23428
Campbell Barton [Mon, 28 Sep 2009 09:59:21 +0000 (09:59 +0000)]
svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r23427:23428

[#8358] Performance regression with raytraced refraction (from Matt Ebb)

10 years agoFix #19470: displaying depth pass could crash, conversion from
Brecht Van Lommel [Mon, 28 Sep 2009 09:06:28 +0000 (09:06 +0000)]
Fix #19470: displaying depth pass could crash, conversion from
float to byte was not working correct.

10 years agoFix #19482: setting cursor position in uv editor was not correct
Brecht Van Lommel [Mon, 28 Sep 2009 08:52:02 +0000 (08:52 +0000)]
Fix #19482: setting cursor position in uv editor was not correct
zoomed in, needed to make view2d offset for pixel rounding dependent
on zoom level.

10 years agoremove warnings, print errors if bpy_ops.py or bpy_sys.py fail to import
Campbell Barton [Mon, 28 Sep 2009 05:02:09 +0000 (05:02 +0000)]
remove warnings, print errors if bpy_ops.py or bpy_sys.py fail to import

10 years agoAdded "scripts/modules" as permanent module search path.
Campbell Barton [Mon, 28 Sep 2009 04:29:01 +0000 (04:29 +0000)]
Added "scripts/modules" as permanent module search path.
- added bpy.sys as a python module - with bpy.sys.expandpath()
- moved bpy.ops into scripts/modules
- moved autocomplete into its own module from space_console.py

10 years agoadded missing notifyer/depsgraph call to loopcut, fixed tweaking the edge slide opera...
Joseph Eagar [Mon, 28 Sep 2009 03:28:28 +0000 (03:28 +0000)]
added missing notifyer/depsgraph call to loopcut, fixed tweaking the edge slide operator in the last operator panel, and uncommented a line in the remove doubles op that was making it not work (and tweaked the rna limits a bit there, too).

10 years ago- removed 2.4x release/scripts
Campbell Barton [Mon, 28 Sep 2009 03:19:52 +0000 (03:19 +0000)]
- removed 2.4x release/scripts
- moved release/io and release/ui into release/scripts/io, ui
- updated scons, cmake, make

When porting 2.4x scripts back, use a command like this so as not to loose the commit history...

 svn cp https://svn.blender.org/svnroot/bf-blender/branches/blender2.4/release/scripts/raw_import.py release/scripts/io/import_raw.py

10 years agoSpeed optimization in itasc when with armature with many bones and few targets. Thank...
Benoit Bolsee [Sun, 27 Sep 2009 16:20:42 +0000 (16:20 +0000)]
Speed optimization in itasc when with armature with many bones and few targets. Thanks to Brecht who pointed out a simple but efficient optimization in SVD decomposition.

10 years ago2.5 Layout Files:
Thomas Dinges [Sun, 27 Sep 2009 11:00:35 +0000 (11:00 +0000)]
2.5 Layout Files:

* Some Code and Whitespace Cleanup.

10 years agoRNA + Animation:
Joshua Leung [Sun, 27 Sep 2009 09:38:13 +0000 (09:38 +0000)]
RNA + Animation:

* Added missing RNA wrapping for Scene -> AnimData
* Fixed bug (with temp-fix) where sequence strips with no names couldn't be animated properly. Currently, this will just use the index of the strip, although that is likely to be mutable (adding/removing strips will change it).

* Removed some old unused code from action.c

10 years agoAdded Image.get_abs_filename() and updated scripts to use it. This removes the necess...
Arystanbek Dyussenov [Sun, 27 Sep 2009 09:19:29 +0000 (09:19 +0000)]
Added Image.get_abs_filename() and updated scripts to use it. This removes the necessity of bpy.sys.expandpath().
Added missing Object.dupli_list.

10 years agoBugfix: Shapekey NLA Tracks were shown mixed with the ones for Objects
Joshua Leung [Sun, 27 Sep 2009 06:27:45 +0000 (06:27 +0000)]
Bugfix: Shapekey NLA Tracks were shown mixed with the ones for Objects

10 years agoAnimation Editors - Moved the code for drawing the filtering toggles into a single...
Joshua Leung [Sun, 27 Sep 2009 06:14:42 +0000 (06:14 +0000)]
Animation Editors - Moved the code for drawing the filtering toggles into a single function.

10 years ago2.5 - Assorted Animation UI/Editing Tweaks
Joshua Leung [Sun, 27 Sep 2009 04:22:04 +0000 (04:22 +0000)]
2.5 - Assorted Animation UI/Editing Tweaks

Main Feature:
* It is now possible to choose which AnimData block is the 'active' one for editing, and/or select them too. AnimData blocks are generally the dark blue and lighter-blue expanders (i.e. Scene, Object, Camera, Lamp, Curve, Armature, etc.)

* Objects are no longer selected/deselected when AKEY is used to toggle selection of channels. This was getting a bit annoying.

* Following on from selection of AnimData blocks, it is now possible to select/make active an AnimData block in the animation editors, and change the active action for that block via the 'Animation Data' panel in NLA Editor's properties region.
--> Be aware that user-counts are not totally handled correctly there yet, so some funky behaviour might be seen...
--> It is possible to assign a new action, or to assign an existing one, allowing to switch between actions as in the past with Actions/IPO Editors...

Other tweaks:
* Some code tweaks towards making the 'Euler Filter' feature for Graph Editor working sometime soon
* Added some backend code for snapping the values of keyframes to a single value. Still need to work out some UI for it though.
* Shuffled the code for ACT_OT_new() around, and removed the poll() callback so that it worked in NLA too.
* Fixed some more notifier bugs with deleting bones and a few other editmode operations for Armatures.

10 years agoSound:
Joerg Mueller [Sat, 26 Sep 2009 20:03:01 +0000 (20:03 +0000)]
Sound:

* Threading buxfix letting MSVC Debug builds crash because of corrupted std::lists
* Adopted two property ranges
* Changed the mixdown volume to set the device volume instead of the volume of every sound.

I also removed the private redefinition of m_logicmgr in SCA_BasicEventManager, which was already defined protected in the parent class SCA_EventManager and thus caused a bug letting GE crash here because of an uninitialized pointer.

10 years agonetrender: split off job settings in their own panel. Add button to open up web inter...
Martin Poirier [Sat, 26 Sep 2009 19:50:59 +0000 (19:50 +0000)]
netrender: split off job settings in their own panel. Add button to open up web interface in a browser.

10 years agoAssorted tiny UI tweaks
William Reynish [Sat, 26 Sep 2009 16:43:20 +0000 (16:43 +0000)]
Assorted tiny UI tweaks

10 years agonetrender: fix some bugs with job cancellation, remove credits system, add more statu...
Martin Poirier [Sat, 26 Sep 2009 16:22:52 +0000 (16:22 +0000)]
netrender: fix some bugs with job cancellation, remove credits system, add more status report on server, cleanup server error management

10 years agoAdd directives to support multi dir lib.
Guillermo S. Romero [Fri, 25 Sep 2009 22:38:15 +0000 (22:38 +0000)]
Add directives to support multi dir lib.

10 years agoFixing up Makefiles, its not fully working but its closer...
Kent Mein [Fri, 25 Sep 2009 18:47:43 +0000 (18:47 +0000)]
Fixing up Makefiles, its not fully working but its closer...

Kent

10 years agoalmost all event managers stored a pointer back to the logic manager, easier if this...
Campbell Barton [Fri, 25 Sep 2009 16:30:15 +0000 (16:30 +0000)]
almost all event managers stored a pointer back to the logic manager, easier if this pointer is in the base class - SCA_EventManager

10 years agoremoved double library entries without realizing I had the BGE disabled, these are...
Campbell Barton [Fri, 25 Sep 2009 16:27:12 +0000 (16:27 +0000)]
removed double library entries without realizing I had the BGE disabled, these are needed.

10 years agoWITH_CXX_GUARDEDALLOC was broken since BL_ArmatureObject become a PyObject
Campbell Barton [Fri, 25 Sep 2009 14:26:00 +0000 (14:26 +0000)]
WITH_CXX_GUARDEDALLOC was broken since BL_ArmatureObject become a PyObject

10 years agofix for buildinfo on mac's
Campbell Barton [Fri, 25 Sep 2009 13:09:18 +0000 (13:09 +0000)]
fix for buildinfo on mac's

10 years agoGraph Editor: F-Modifiers can now be added to multiple selected F-Curves at once...
Joshua Leung [Fri, 25 Sep 2009 12:20:31 +0000 (12:20 +0000)]
Graph Editor: F-Modifiers can now be added to multiple selected F-Curves at once with the Ctrl-Shift-M hotkey.

* All the selected F-Curves will get the same type of F-Modifier added.
* The button in the properties region will still only added the F-Modifier to the active F-Curve though
* For now, there must be an active F-Curve in either case, otherwise the poll() callback fails.

10 years agoGraph Editor: Drawing + Selection Tweaks
Joshua Leung [Fri, 25 Sep 2009 10:52:29 +0000 (10:52 +0000)]
Graph Editor: Drawing + Selection Tweaks

* Deselect all now selects/deselects F-Curves too

* Tangents of unselected F-Curves now draw 'faded' like the curves they belong to. This experimental change is quite subtle, but can be made stronger still if people want.

* Cleaned up some old comments in the code too...

10 years agomodal kaymaps for view3d rotate/move/zoom removed redundant 'view' prefix from these...
Campbell Barton [Fri, 25 Sep 2009 10:24:42 +0000 (10:24 +0000)]
modal kaymaps for view3d rotate/move/zoom removed redundant 'view' prefix from these operators.

10 years agoWarning fixes for ITASC. Also, use <stdlib.h> instead of <malloc.h>,
Brecht Van Lommel [Fri, 25 Sep 2009 09:33:46 +0000 (09:33 +0000)]
Warning fixes for ITASC. Also, use <stdlib.h> instead of <malloc.h>,
it works everywhere.

10 years agoFix OSX compilation problem with malloc.h in itasc
Benoit Bolsee [Fri, 25 Sep 2009 07:44:29 +0000 (07:44 +0000)]
Fix OSX compilation problem with malloc.h in itasc

10 years ago- use pythons time module rather then bpy.sys.time()
Campbell Barton [Fri, 25 Sep 2009 05:25:44 +0000 (05:25 +0000)]
- use pythons time module rather then bpy.sys.time()
- comment poll functions, maybe could check for editable scene later
- importing OBJs imports triangle meshes.

10 years agoDrivers: Copy/Paste tools for the RMB Menu
Joshua Leung [Fri, 25 Sep 2009 04:51:04 +0000 (04:51 +0000)]
Drivers: Copy/Paste tools for the RMB Menu

Drivers can now be copied/pasted for single properties, allowing drivers set up on one property to be added to a few other properties relatively easily.

Also, added description strings for the other driver-button operators.

10 years agostill doesn't work but this fixes make clean
Campbell Barton [Fri, 25 Sep 2009 04:25:40 +0000 (04:25 +0000)]
still doesn't work but this fixes make clean

10 years agooptions WITH_LZO and WITH_LZMA for cmake and scons (default to true) pointcache.c...
Campbell Barton [Fri, 25 Sep 2009 02:40:10 +0000 (02:40 +0000)]
options WITH_LZO and WITH_LZMA for cmake and scons (default to true) pointcache.c also needed to have checks for these defines.

10 years agoShell script exit values should be non-negative.
Guillermo S. Romero [Fri, 25 Sep 2009 01:59:43 +0000 (01:59 +0000)]
Shell script exit values should be non-negative.
Exact error with dash as sh "exit: 12: Illegal number: -1".
The rest are just changes to whitespace and polishing.

10 years agoneeded for linking with cmake on unix
Campbell Barton [Fri, 25 Sep 2009 01:49:06 +0000 (01:49 +0000)]
needed for linking with cmake on unix

10 years agoQuick tweaks to commonly debated mesh-editing hotkeys:
Joshua Leung [Fri, 25 Sep 2009 01:43:34 +0000 (01:43 +0000)]
Quick tweaks to commonly debated mesh-editing hotkeys:

* Loopcut is now just Ctrl-R.
The preview will be activated when you do this, and you can just click to confirm as in 2.4x and also like when this was activated from the toolshelf. This is less error prone than having to click at the same time as picking the loop as with the previous hotkey.

* Knife is now just: hold k-key and lmb click+drag to draw a cut line and cut the mesh.
This is more direct than the (rather arcane) Ctrl-X-LMB-drag, and is quite similar to what's done for Grease Pencil now.

10 years agoBugfixes:
Joshua Leung [Fri, 25 Sep 2009 01:30:32 +0000 (01:30 +0000)]
Bugfixes:

* #19459: Shape Keys not Animateable
Shape Keys were missing the appropriate 'path' callbacks.

* #19458: 3D Viewport doesn't refresh when adding new bone in editmode (using Shift-A)
The 'wrong' notifier was being sent. Currently, Armature EditMode only responds to NC_OBJECT|ND_TRANSFORM, which isn't strictly that correct for all cases.

* Alignment code for constraints headers (i.e. enable/disable lumped with the delete constraint button) was causing the delete button to not work anymore. Removed the offending code (it shouldn't have been there to start off with).

* When object's don't have their own AnimData (i.e. if you only animate the values of some shapekeys), a space is no longer left beside the object's name for a visibility toggle in the Graph Editor.

10 years agomissing includes
Campbell Barton [Fri, 25 Sep 2009 01:29:30 +0000 (01:29 +0000)]
missing includes

10 years agoSVN maintenance.
Guillermo S. Romero [Fri, 25 Sep 2009 01:13:07 +0000 (01:13 +0000)]
SVN maintenance.

10 years ago* some fixes to have scons/mingw compile the sources too, even with BF_DEBUG=1 and...
Nathan Letwory [Thu, 24 Sep 2009 22:11:35 +0000 (22:11 +0000)]
* some fixes to have scons/mingw compile the sources too, even with BF_DEBUG=1 and WITH_BF_GAMEENGINE=1

10 years agoMerge of itasc branch. Project files, scons and cmake should be working. Makefile...
Benoit Bolsee [Thu, 24 Sep 2009 21:22:24 +0000 (21:22 +0000)]
Merge ... itasc branch. Project files, scons and cmake should be working. Makefile updated but not tested. Comes with Eigen2 2.0.6 C++ matrix library.

10 years agonetrender: usage based balancer. more useful than credits
Martin Poirier [Thu, 24 Sep 2009 21:05:54 +0000 (21:05 +0000)]
netrender: usage based balancer. more useful than credits

10 years ago* explicit cast needed for mingw.
Nathan Letwory [Thu, 24 Sep 2009 20:20:43 +0000 (20:20 +0000)]
* explicit cast needed for mingw.

10 years agonetrender: draft code for cluster usage per job calculations. Eventually, this will...
Martin Poirier [Thu, 24 Sep 2009 19:52:32 +0000 (19:52 +0000)]
netrender: draft code for cluster usage per job calculations. Eventually, this will be used for load balancing

10 years ago* fix snprintf error with mingw
Nathan Letwory [Thu, 24 Sep 2009 19:50:15 +0000 (19:50 +0000)]
* fix snprintf error with mingw
* move header guards to the right place.

10 years agofixed some indentation, and removed
Kent Mein [Thu, 24 Sep 2009 16:18:17 +0000 (16:18 +0000)]
fixed some indentation, and removed
declaration of index in a couple of places because it was
already defined and safe to use the old def.

Kent

10 years agoadd buildinfo to cmake (no win32 support)
Campbell Barton [Thu, 24 Sep 2009 15:36:00 +0000 (15:36 +0000)]
add buildinfo to cmake (no win32 support)

10 years agoimagewrap was using uninitialized vars from do_material_tex
Campbell Barton [Thu, 24 Sep 2009 12:27:20 +0000 (12:27 +0000)]
imagewrap was using uninitialized vars from do_material_tex
found while looking into a different bug.

10 years agoFix for panorama backwards compatibility not working correct.
Brecht Van Lommel [Thu, 24 Sep 2009 12:15:17 +0000 (12:15 +0000)]
Fix for panorama backwards compatibility not working correct.

10 years agomingw - silencing the warnings about '#pragma' warnings being unrecognised or being...
Joshua Leung [Thu, 24 Sep 2009 11:46:17 +0000 (11:46 +0000)]
mingw - silencing the warnings about '#pragma' warnings being unrecognised or being ignored. This should still work fine for msvc, and other platforms though.

10 years agofix for [#19437] Console (Python): first run doesn't have the ">>>"
Campbell Barton [Thu, 24 Sep 2009 11:37:33 +0000 (11:37 +0000)]
fix for [#19437] Console (Python): first run doesn't have the ">>>"

10 years agoFix #19446: merge operator needs to be undone twice, interface
Brecht Van Lommel [Thu, 24 Sep 2009 10:46:52 +0000 (10:46 +0000)]
Fix #19446: merge operator needs to be undone twice, interface
was still doing undo pushes in cases it was not needed.

10 years ago3rd attempt to fix ssize_t problem in MSVC and mingw
Benoit Bolsee [Thu, 24 Sep 2009 10:41:28 +0000 (10:41 +0000)]
3rd attempt to fix ssize_t problem in MSVC and mingw

10 years agofix for middle mouse up events not working with modal keymaps (used for fly mode).
Campbell Barton [Thu, 24 Sep 2009 10:35:04 +0000 (10:35 +0000)]
fix for middle mouse up events not working with modal keymaps (used for fly mode).

With mouse events event->val started as 0/1 for press/release but later the tweak function made LMB and RMB zero value into KM_RELEASE, somehow MMB didnt get used by the tweak function so was left at 0 and the modal keymap function failed when comparing MMB Mouse ups.

now initialize event->val as KM_PRESS/KM_RELEASE

10 years agoFix more problem with mingw this time
Benoit Bolsee [Thu, 24 Sep 2009 10:04:43 +0000 (10:04 +0000)]
Fix more problem with mingw this time

10 years agoFix compilation problem in Windows and update project files
Benoit Bolsee [Thu, 24 Sep 2009 09:29:59 +0000 (09:29 +0000)]
Fix compilation problem in Windows and update project files

10 years ago- cmake/make/scons didnt define INTERNATIONAL when buidling blenfont
Campbell Barton [Thu, 24 Sep 2009 07:03:18 +0000 (07:03 +0000)]
- cmake/make/scons didnt define INTERNATIONAL when buidling blenfont

- BLF_lang_init used confusing IFDEF's, unlikely this was well tested. Split this into 3 functions for Apple/Win32/Unix, Unix uses BLI_gethome_folder(), cant test others, ideally they should use BLI_gethome_folder too but needs testing.
Possibly each os cant be made to use BLI_gethome_folder and the separate func's can be removed (please test).

- units, hectometers were displayed wrong.