Commit Graph

10615 Commits

Author SHA1 Message Date
Andrea Weikert
e7c3ff6458 == mmap for win32 ==
replacement for mmap/munmap on Windows.
Implemented using CreateFileMapping/MapViewOfFile.
2008-04-29 18:41:34 +00:00
Brecht Van Lommel
391bd70d42 Fix for bug #9014: crash saving the depth pass with openexr or hdr,
both file formats crashed on saving images with less than 4 channels.
2008-04-29 16:57:39 +00:00
Jean-Luc Peurière
b6a6507ddf getting ARB shaders working again in GE.
This is is a kludge, and only to get a release
working. later solution is to use glew
2008-04-29 16:22:13 +00:00
Brecht Van Lommel
17d83bfefb Fix for octree filling print when rendering, the counter was per object,
now counts all faces as it did before.
2008-04-29 15:19:58 +00:00
Brecht Van Lommel
d5bfb1b6d9 Fix for bug #8949: diffuse tangent shading did not use correctly
normalized normal. Patch by André Pinto, thanks!
2008-04-29 13:51:47 +00:00
Brecht Van Lommel
8370991710 Fix for bug #9657: ipo's on the object in particle object visualisation
didn't always get correct time.
2008-04-29 09:56:52 +00:00
Campbell Barton
db9c14a574 fix gcc warnings 2008-04-29 08:24:33 +00:00
Joshua Leung
cc22fddec8 Bugfix #9676; Assigning Driver to Own Object when Pinning IPO Editor
When the IPO Editor is pinned, drivers will now be handled as if they belonged to the object that the ipo-belonged to when the ipo was pinned. This behaviour is more predictable than using the active object.
2008-04-29 03:19:11 +00:00
Nathan Letwory
484a00a817 * make makesdna dependant on DNA header files too, instead of relying on makesdna dependency only.
Fix through pointer by jaguarandi. Thanks!
2008-04-28 22:19:03 +00:00
Campbell Barton
723397bb91 running scripts in background mode would crash blender when checking a scriptspace areas 2008-04-28 21:54:03 +00:00
Campbell Barton
96cec2e99b if a blend file was opened with /./ in the path (for example "some/./path/to/./model.blend" ) the relative paths from created from that location would be incorrect. This results in linked library paths being loaded incorrectly. 2008-04-28 21:29:15 +00:00
Brecht Van Lommel
082b706e8d Fix for bug #8865: on mac os x, with certain processors (I'm guessing
Intel Xeon only), doing a lot of mutex locking is really slow. Getting
the image  buffer for each texture read then made using more threads
actually slow down the render. Now I've split up the function in two
parts, one parts that checks if the image is available, and another
that does a mutex lock and loading if needed.

Changes quite a lot of code, so hopefully doesn't break stuff, but it
seemed to survive test with rendering a number of frames using all
image types and many threads, though this kind of threading problem
only happens once in a while .. so hard to test for.
2008-04-28 20:57:03 +00:00
Campbell Barton
d6400179d2 vertex parents to a mesh that no verts would crash blender 2008-04-28 17:14:56 +00:00
Daniel Genrich
23660800b6 Cloth: Old RC1 and RC2 files with cloth should open again and not crash (after the DNA rearrangement to fix a bug yesterday). But be carefull your settings get lost. Best thing to do: 1. write settings down, 2. open blend in new (>=17 subversion) blender and just save the file (and ignore warnings on the command line.) Take this as a good example why not to use svn blender versions for production purposes ;) 2008-04-28 17:02:55 +00:00
Ken Hughes
2a3d159b06 Add BF_X264_CONFIG and BF_XVIDCORE_CONFIG flags to scons, to allow passing
configuration info for cross-compiling to ./configure scripts.  Also let
makesdna use PLATFORM_LINKFLAGS.
2008-04-28 16:14:31 +00:00
Campbell Barton
c6554898cc fix for [#9651] raw_export.py tooltip outdated?
own error, bpath looper was trying to free NULL pointer,
added fromOrig to python mtex api
made FromOrig and FromDupli tooltips be understandable
2008-04-28 16:09:17 +00:00
Brecht Van Lommel
ae4179e704 Fix for displacement baking when it doesn't find a hit. Instead
of writing 0.0 it now writes the neutral value of 0.5.
2008-04-28 14:54:24 +00:00
Brecht Van Lommel
a0b2195a8d Fix for bug #9652: "draw zbuffer values" in the image editor did
not work correct.
2008-04-28 13:33:52 +00:00
Joshua Leung
514580d39d Bugfix:
Restored Border-Select in the Action Editor for Action Channels. Was removed when doing the recode and never added back, hence a regression.
2008-04-28 12:26:41 +00:00
Brecht Van Lommel
3fcc7095e8 Fix for bug #9687: crash with FSA when compiling with openexr support.
FSA requires exr, so I've disabled the buttons too in that case. I also
noticed CMake doesn't enable openexr by default, but a lot of the render
code relies on it, so I've enabled it by default now.
2008-04-28 12:14:30 +00:00
Joshua Leung
dfbc6213b5 == Action Editor - Group Colors ==
Made option to show group colors the default. If this is too colourful for you, disable it in the View menu.
2008-04-28 11:40:38 +00:00
Joshua Leung
de8b30a424 Bugfix #8937: Action constraint for non-armatures shows lag on clear transform
The problem here was that the owner instead of the workob was being used to find the effect of the action constraint.
2008-04-28 10:35:51 +00:00
Joshua Leung
9455275490 == Action Editor - Action Groups finishing touches ==
* Added a new tool "Synchronise with Armature" (found under Channels->Grouping), which synchronises the grouping of action-channels and the grouping of their relevant bones. 

This only works when the active object is an armature, and the action isn't pinned. All of the action's action-channels are removed from their groups, and are added back into groups according to the current grouping of their corresponding bones. 

A bit of testing for weird cases is needed.


* Group colours are now not drawn if the group originally was using the 'default' colour-set.
2008-04-28 07:38:06 +00:00
Joshua Leung
cf84cf5f21 Bugfix:
The Outliner was being built incorrectly, leading to fake "IPO-Driver"-linked objects being shown under IPO's. These were caused by a missing break statement, which lead to the IPO case flowing on to the Action case. This could cause crashes with undo on some computers.
2008-04-28 05:14:26 +00:00
Joshua Leung
5b691071cf Assorted tidy-ups for keyframing (including auto-keying), while trying to track down a bug. 2008-04-28 04:46:28 +00:00
Joshua Leung
961d8c5cd4 Adding new poses to a PoseLib also creates Action Groups in the PoseLib, just like for keyframing. 2008-04-28 00:51:31 +00:00
Joshua Leung
1b45506f0a Compiler warning fixes:
* in scene.c in blenkernel, set_last_seq (defined in src - editseq.c) is called... this may/may not need some stubs for game-engine stuff
* removed unused vars due to old particle-effects stuff
2008-04-28 00:40:38 +00:00
Daniel Genrich
8a44cfb217 Subversion bump because of big cloth struct change 2008-04-27 22:34:19 +00:00
Jean-Luc Peurière
0d39ee1e76 follow-up for the universal darwin config.py
also added bal level call stub for set_last_seq,
player building was broken by recent commit
2008-04-27 22:05:53 +00:00
Daniel Genrich
3a3ff9c9dc Bugfix: 32bit cloth files were loaded bad in 64bit blenders and the way arround. The e.g. GUI-only variable 'mass' was reseted to 0. Problem: makesdna doesn't cry out on compile - I wonder why this differences could happen. Solution: Rearange cloth DNA, resort things, clear up and bug was gone - weird. Problem left: Every file having cloth enabled before this revision is incompatible with this version. If anyone know a better solution, please go ahead 2008-04-27 22:04:47 +00:00
Campbell Barton
5add2d8c3e take 2, disable enter editmode and enter editmode in .B.blend, commited rev 14289 but had to be reverted because other changes were made. 2008-04-27 21:44:28 +00:00
Campbell Barton
9101d5689f * Group unlinking wasnt removing groups from particle systems, or render layers light overrid.
* BPath sequencer strip looper was only operating on the active scene, now look through all scenes.
* The active sequence strip wasnt being reset when scenes switched, so you could see the previous scenes strip when switching to a new scene.
2008-04-27 20:43:25 +00:00
Nicholas Bishop
7f985f3399 == Multires ==
Fixed bug #9680, Crash on render

Caused by multires sometimes looking at editmesh data rather than mesh data during render
2008-04-27 18:26:43 +00:00
Campbell Barton
57c1fbe557 remove old particle system.
also removed quat, dquat, and sumohandle from the Object struct since they aren't used anywhere.
2008-04-27 18:26:20 +00:00
Andrea Weikert
9ea254ca34 == imagebrowser ==
fix international font handling, filenames weren't displayed due to lack of utf8 conversion. Works like in filesel now.

For future release, iconv library (for Windows) needs to be updated to support locale_charset for getting the current system charset settings.
2008-04-27 18:25:52 +00:00
Benoit Bolsee
2740bbc89c Update MSVC project files to support ffmpeg. Make sure you do svn update in lib/windows to link with latest ffmpeg libraries 2008-04-27 15:02:37 +00:00
Campbell Barton
8207e6174f Make apply size/rot take children into account (apricot request) 2008-04-27 14:29:49 +00:00
Campbell Barton
db18b47be5 fix for own error when trying to fix python command line crash,
was calling screenmain() before executing the python script which meant it was never executed (therefore no crash :) )

Moved screenmain() back to the the end of main() and added a TESTBASELIB_BGMODE which checks for G.vd and uses the scene layer if its not there. Of course python should not be running stuff that uses G.vd :/

Also made python scripts stay attached to screens when LOAD UI is disabled. This means you can load a new blend file and the python console can stay open, has been tested for a while in the apricot branch.
2008-04-27 11:37:57 +00:00
Benoit Bolsee
bc059cb8b2 BGE bug: crash when an object being tracked-to is deleted (bad practice anyway). Fix by creating a generic cross reference between actuators (only TrackTo uses it at the moment) and objects so that the actuator is informed when the target object is deleted 2008-04-26 20:41:25 +00:00
Campbell Barton
c8376869b1 BLI_split_dirfile was being used in cases it should not have been,
Added BLI_split_dirfile_basic, that only splits the path into directory and file. without checking the dir exists or creating it, without changing the original string that is passed to it.
2008-04-26 13:08:57 +00:00
Brecht Van Lommel
19985ae918 Fix for bug #9664: switching to particle edit mode with ctrl+shift+tab
from paint modes didn't work correct.
2008-04-25 20:52:40 +00:00
Ken Hughes
bc18e9e290 Suggestion by GSR; move "extern C" into header file, remove "_" from
utf8towchar function name.
2008-04-25 19:18:24 +00:00
Campbell Barton
2a72b986d4 removed BLI_split_dirfile, it dosnt work with relative paths.
it also makes a directory if its not there, need to look into other uses of this function.
2008-04-25 17:52:25 +00:00
Ken Hughes
f4cb93bf1f Remove redundant utf8towchar() from FTGL code. 2008-04-25 17:11:37 +00:00
Willian Padovani Germano
3a4f23aa78 == PyNodes ==
1) Added support for a var called "__node__" in pynode scripts, that can be used to point to the desired pynode object, to make sure it is chosen.

2) Fixed a semi-obscure crash that could happen when reparsing a pynode script that was used by multiple nodes in different scenes. Memory corruption would happen if the reparsing failed during the recreation of the pynode object, not when executing it.
2008-04-25 16:35:52 +00:00
Campbell Barton
feb440c2cd added sequencer paths to bpath iterator, This needed to use get/set filename callbacks internally because the sequencer stores dir/file separately.
This means when moving large projects with many images/videos/sounds is possible with 'File, External Data, Find Missing Files'.
- needed so we can put peach animatic, glrenders & testrenders on the dvd.
also datatoc.c - brecht's fixes from apricot.
2008-04-25 16:09:16 +00:00
Campbell Barton
b94f3d0fcb fix/workaround for blender crashing when running python runs text.clear() in background mode. ideally python api would not use this function. 2008-04-25 10:12:32 +00:00
Ken Hughes
33bbe7f340 Fix compiler warning about nested C comments. 2008-04-24 21:35:56 +00:00
Benoit Bolsee
9b9359120f BGE bug: fix a crash at game exit caused by inconsistent controller map after object deletion. The bug became apparent since the memory leaks have been fixed. 2008-04-24 21:26:39 +00:00
Ken Hughes
4d1d60e236 Duplicating UTF-8 changes from Revision 14536 in another place in the source tree. Pointed out in IRC by Kent. 2008-04-24 20:10:01 +00:00