Commit Graph

47594 Commits

Author SHA1 Message Date
Brecht Van Lommel
33ffc99664 Fix for use of uninitialized variable in shadow caching, could
sometimes give 1 nan pixel.
2008-01-05 21:56:28 +00:00
Campbell Barton
5e8299bda3 Check for screen bounds clipping in particle editmode. (thanks to valgrind again) 2008-01-05 21:49:09 +00:00
Campbell Barton
bbd4d05321 Used valgrind to find some uninitialized variables 2008-01-05 19:11:10 +00:00
Nathan Letwory
30310a530a * make sure blender2.5 still compiles when WITH_BF_VERSE=1 2008-01-05 13:55:30 +00:00
Joshua Leung
fc2ea439b0 == PoseLib - Quick Search for Preview ==
Now, when Previewing/Browsing poses with Ctrl-L, it is possible to type in part of a name to limit the poses which can get chosen to hone in on the poses you wish to apply more quickly. 
* The search is case insensitive, and doesn't look for complete matches (it will 'match' if the whole search-string is found). 
* Only basic text manipulation capabilities are available for editing the search string (i.e.  backspace, del, home, end, move text-cursor forward ->, move text-cursor backwards <-).
* Pose browsing using the Scroll-Wheel and Page up/down can be used to browse through the matches
* View manipulation is only possible with MMB, as numpad keys are used for search-string input.

In the process, I've recoded the preview function to be more modular. It's now split up more, like the Transform core.
2008-01-05 10:54:33 +00:00
Joshua Leung
264aaddcb4 Bugfix #7793: ChildOf Constraint works bad for bones
I hope this time I've fixed it once and for all. The cases which use to fail seem to work now, so I assume it's now fixed. In case it isn't, I'll leave the bug report open for a few days first.
2008-01-05 10:01:05 +00:00
Joshua Leung
8e54dc2579 == Constraints - Code Cleanups ==
* Tidied up coding style of code in editconstraint.c 
- removed blank lines, made whitespace-use more consistent

* Shuffled code in editconstraint.c and BIF_editconstraint.h so that it was in a more orderly fashion

* Reduced code redundancy in test_constraints 
- tests which can apply to general constraints (target existance, and clashes with the owner) are not copied out for each constraint that needs it
- ChildOf constraint now gets validated too (before it was missing such checks)

* Recoded the way PyConstraints build the menu for displaying scripts available for use. It now uses dynstr instead of guessing how much memory to allocate for each entry
2008-01-05 09:31:43 +00:00
Joshua Leung
8ee41f8d28 Action Editor Bugfixes:
* NKEY popup for renaming channels was not working correctly. A typo meant that it only showed when the mouse was in the timeline area, not when it was over the channel names.

* Added a few safety checks to copy/paste to hopefully prevent crashes. Also, when there's only one channel in the buffer, it now copies all the data from that to all selected channels.
2008-01-05 04:07:28 +00:00
Brecht Van Lommel
c2eeae8e64 - Further fixes for duplivert rendering inside a dupligroup.
- Fix for integer overflow when allocating a lot of particles
  (9 million * 8 keys * sizeof cache key).
2008-01-04 21:12:48 +00:00
Brecht Van Lommel
2f7dad7df7 - Make dupliverts inside a dupligroup render and draw as instances.
- Possible fix for a dupli render memory leak, but i'm not sure.
2008-01-04 17:48:07 +00:00
Campbell Barton
9ac2817fef some changes needed to get blender compiling with 64bit libs, use the systems Mesa now. 2008-01-04 11:55:37 +00:00
Joshua Leung
5e58f5d463 == Local Constraints for Proxies (Peach Request) ==
Proxy protected bones can now get local (per-file) constraints added to them, which will be preserved after a file load. This is necessary for adding constraints to proxy-protected bones for special purposes while animating (i.e.  adding CopyLocs to IK-hand controls to pick up an object). 

These must be added after any constraints from the proxy, as proxy constraints may come and go without warning. As such, the UI forbids this from happening by removing the relevant button.

I've also made UI-changes to show which constraints come from the proxy (the buttons to move the constraint up/down and delete it, are replace with two icons - a the proxy 'ghost' icon and a lock). Also, trying to change any settings of proxy-protected constraint will show an error.


Notes:
* Object constraints are still not playing nice with proxies yet. They didn't before this commit either...
2008-01-04 11:21:50 +00:00
Brecht Van Lommel
56faf73e3c - Bugfix for flickering shadow with strand simplification.
- On non-edited hair, don't generate child particles for
  each step, only at the end.
- Small optimization in the kd-tree.
2008-01-03 22:43:51 +00:00
Chris Want
a2b8986d1d Support for CMake 2008-01-03 22:20:45 +00:00
Campbell Barton
86471f8b72 Split guardedalloc print into 2 funcs, 1 that prints on errors, another then prints the memory blocks as a python dict, minor changes to help text 2008-01-03 14:53:44 +00:00
Brecht Van Lommel
0e716733bc Bugfix for crash in strand simplification code. 2008-01-03 12:45:56 +00:00
Joshua Leung
71d405bdb0 Applied name-changes of Auto-Snap menu to NLA-Editor too. 2008-01-03 11:05:46 +00:00
Joshua Leung
07addddc67 A few PoseLib and Action-Editor tweaks:
* Removed "snap" from the names of the entries in the "Auto-Snap" menu for the Action Editor. "No Snap" is still "No Snap" though.
* PoseLib is now referred to as "Pose Library" in the interface
* Tidied up whitespace in editaction.c
2008-01-03 11:03:03 +00:00
Campbell Barton
bb603a53a1 Added a note to blender help text about argument order (pitfall I ran into when rendering)
also removed FTYPE as an optional format (TODO - remove FTYPE from render output panel since you cant use FTYPE anymore and its not used internally, hint hint)
2008-01-03 10:27:29 +00:00
Campbell Barton
f1cb4d521c patch from John Croisant [#8045] Allows muting NLA strips via Python API
https://projects.blender.org/tracker/index.php?func=detail&aid=8045&group_id=9&atid=127
2008-01-03 09:41:19 +00:00
Peter Schlaile
27061f5fe9 == Sequencer ==
Fix crash on duplicate since crop, transform + proxy weren't taken into
account.
2008-01-02 23:12:37 +00:00
Peter Schlaile
8d6fe8e2ca == Sequencer ==
forgot to swap input on "Over drop".
2008-01-02 22:45:38 +00:00
Peter Schlaile
4aef3b6440 == Sequencer ==
Fixed:

* crash with gamma tabs and blend modes
* crash on rect -> rect_float blend mode input
* alpha over and under have now input swapped
2008-01-02 22:39:46 +00:00
Campbell Barton
0d0fe50a70 trackball rotate patch from bebraw so using the Shift key works as expected. 2008-01-02 21:40:05 +00:00
Peter Schlaile
f081a56ebc == Sequencer ==
Bugfix: fixes crash if lowest strip was in blend mode "ALPHA OVER" (combined
with other blends above)
2008-01-02 21:36:51 +00:00
Campbell Barton
861d5e57a5 displace modifier wasnt loading in linked textures/objects. missing calls to expand_doit 2008-01-02 18:44:13 +00:00
Brecht Van Lommel
2c6e0f5ab2 Bugfix for memory leak with particle roughness vertex groups. 2008-01-02 17:57:18 +00:00
Campbell Barton
f3ebe967dd added utility function Blender.GetPaths( absolute=0 )
returns a list of files this blend file uses, wraps bpath functions.
2008-01-02 17:40:53 +00:00
Brecht Van Lommel
0c6d3169dd Bugfix for some strand simplification popping. 2008-01-02 15:44:28 +00:00
Daniel Genrich
a9c36825aa svn merge -r 12937:13095 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2008-01-02 14:36:46 +00:00
Brecht Van Lommel
1c6e1dd5f4 Bugfix for incorrect strand clipping in shadow maps, not sure yet it
actually fixes the problem.
2008-01-02 14:20:15 +00:00
Daniel Genrich
5b9a06e041 Pre merge commit, only added debug output so far 2008-01-02 13:51:44 +00:00
Nathan Letwory
c87785671c * make sure we have still a compiling GE with scons/mingw
* assist ideasman also for scons/mingw with ffmpeg enabled
2008-01-02 12:35:30 +00:00
Nathan Letwory
3c4f424fc8 * making sure removal of headers still has successful compile on win32 2008-01-01 22:10:39 +00:00
Campbell Barton
a42e548e81 removed some more header files, made the game engine compile with removed header files, added includes to SConstruct files. 2008-01-01 19:20:49 +00:00
Peter Schlaile
fb3ed9e0a5 == Sequencer ==
Added some additional NULL-checks. (se->ibuf can be null, shame on me :)
2008-01-01 18:38:41 +00:00
Ton Roosendaal
372ee054c0 Some notes for those who try to follow this :)
- first work on getting area/screen handling back
- added structure for where to put stuff, is still under
  review, wait a bit for docs?

Campbell is working on removing every bad level include from
sources, so we can safely rebuild the src/ directory.
2008-01-01 18:29:19 +00:00
Campbell Barton
58bf29e389 removed blenderdef.h, BIF_*, BDR_* and BSE_* header files (except for BIF_gl.h and BIF_glutil.h) 2008-01-01 18:16:10 +00:00
Campbell Barton
9db2035e36 while trying to debug memory leaks, extended MEM_printmemlist to print a python dict and some lines at the end to format it in a useful way when run as a python script. 2008-01-01 16:14:08 +00:00
Ton Roosendaal
2df4ef711a More work on restoring Blender;
- brining back subwindow management
- removing more bad level stuff
2008-01-01 15:53:38 +00:00
Ton Roosendaal
65f1999435 Bugfix #8032
The warning i've coded 1.5 year ago, to warn when a .blend was written
by newer executable, failed on the .B.blend load case... UI not property
initialized then.

This at least fixes the crash, a menu won't pop up correctly though...
luckily the warning works for regular load or ctrl-x
2008-01-01 14:13:37 +00:00
Peter Schlaile
3ef896a945 == Sequencer ==
Attention! Rather large sequencer rewrite:

* Implemented layer blending using implicit effects. (works like layers 
  in "The Gimp" or Photoshop.)
* Fixed Space-Bar start-stop in preview windows.
  You can start playback using spacebar within a preview-window and it _works_!
* Fixed Flip Y (didn't work for float)
* Fixed premul (didn't work for float)
* Added IPOs to _all_ tracks. In blend-mode REPLACE it drives the 
  "mul"-parameter in all other blend modes it drives the effect.
* you can meta single tracks.
* moved "mute track" from "M" to "Shift-M"
* added "Shift-L" for "lock track"
* changed inner workings for Metas. Now all ImBufs have to use the
  reference counting mechanism. (Only interesting for coders :)

!!! Really important change, that affects current files!

Since you can mute tracks and now there is real layer blending capabilities
in place, I changed the silly behaviour that chose the output track.

Old behaviour: if we have an effect track visible, use the uppermost effect
track. If there is _no_ effect track visible, use the lowest input track.

New behaviour: always use the uppermost track. With blend modes active: 
work our way down starting from the uppermost track to the first 
"replace"-mode track. This is the way the gimp, photoshop, basically _all_
other applications work...

So if this change ruins your day: please try to fix your files using
"mute". If this doesn't work out, I can still restore the old behaviour,
but I really hope, that this is _not_ necessary!

Rational: most people won't get affected by this change, since you can't
really do anything usefull with the (old) sequencer without at least one 
effect track and then you are on the safe side...
2008-01-01 11:44:42 +00:00
Nathan Letwory
bcb14c2a0f * add fullscreen toggle operator (for testing fullscreen states in win32). hotkey is FKEY. Do test on other platforms, too. 2008-01-01 09:07:02 +00:00
Campbell Barton
0a62df356d find external files wasnt finding the biggest screen area for the file selector,
other minor changes. renamed "Dump Screen" to "Screenshot" in the file menu.
2008-01-01 02:20:13 +00:00
Janne Karhu
d5e491c3ef Recoded particles initial rotations to allow much more flexible settings. 2008-01-01 01:00:05 +00:00
Campbell Barton
b3e5f6b451 more tooltip changes 2008-01-01 00:56:22 +00:00
Campbell Barton
8208d5d0be Fix for check missing files, edited some tooltips - (Show key shortcuts for PLAY and RENDER) 2007-12-31 22:18:04 +00:00
Campbell Barton
9afd6135d6 made dupli's respect render and view restrict flags (from the outliner)
This means one group can contain proxy objects to display in the 3d view as well as hi quality models that are only rendered. - again for peach tree's.
2007-12-31 12:47:10 +00:00
Campbell Barton
be207a7e4c disallow editing the path of an indirectly linked library in the outliner 2007-12-31 12:13:30 +00:00
Campbell Barton
5e4d32a9ff Improvements to File->External Data->Make Paths Relative & Make Paths Absolute,
made when testing peach blend files wont have path issues when sent to the renderfarm.
* log failed path conversions
* clean the path so //foo/../foo/ is removed (not sure why but some peach files had this problem)
Also added a function to util.c 
BLI_cleanup_file, same as BLI_cleanup_dir but dosnt add a slash at the end.
2007-12-31 12:03:26 +00:00