Commit Graph

20514 Commits

Author SHA1 Message Date
Brecht Van Lommel
f8d3f0582d Bugfix for paint cursor not showing up in paint/sculpt modes
after saving the file in that mode and reloading.
2009-10-20 19:52:31 +00:00
Brecht Van Lommel
f22872dded Bugfix for use of freed memory in jobs manager. 2009-10-20 19:46:36 +00:00
Brecht Van Lommel
d27649e9f0 Bugfix: adding a curve path did not mark it as being a path/3d
correctly, causing e.g. curve guides not to work with it.
2009-10-20 19:37:49 +00:00
Campbell Barton
23f69cbe92 move G_FACESELECT from G.f to mesh->editflag, renamed to ME_EDIT_PAINT_MASK 2009-10-20 19:27:27 +00:00
Daniel Genrich
5240d39e48 Smoke:
* Revert "speedup" through not using GL_POLYGON - wasn't helping at all, only confusing the source
2009-10-20 19:22:19 +00:00
Brecht Van Lommel
9327dd9112 Bugfix: render clipping was not using correct matrix, own mistake
in recent commit.
2009-10-20 19:14:55 +00:00
Guillermo S. Romero
ad260a0370 basename() function, at least know it should compile.
Feel free to replace with the proper WIN32 code.
2009-10-20 19:09:12 +00:00
Brecht Van Lommel
d8ee1e2737 Bugfix for a crash with the cut tool in particle mode. 2009-10-20 18:49:21 +00:00
Brecht Van Lommel
022be64517 Bugfix: raytracer building could crash (abort due to an assert), when
using for example a text object scaled down to size zero. This was due
to nan's generated through division by zero.
2009-10-20 18:27:46 +00:00
Campbell Barton
49a937c521 fix for mirror select and added to the menu 2009-10-20 17:10:01 +00:00
Daniel Genrich
25e9be0002 Smoke:
* "Fixing" slowdown (no idea where it comes from) by lowering the number of drawn slices again
2009-10-20 17:08:07 +00:00
Brecht Van Lommel
5e5a38cdc3 Bugfixes for quit.blend + library linking, the last commit didn't solve
that completely:

* quit.blend is saved from the undo file, which did not save out library
  ID_LI and ID_ID blocks, for quick undo keeping the library datablocks.
  However this means library links are lost on reading the quit.blend, so
  now instead of not writing them, they are not read on undo.
* Libraries were not not using the right path yet always.

Note the screen setup is still not recovered from the quit.blend if no
auto save happened yet, but that is not important enough to spend time on
now.
2009-10-20 16:43:25 +00:00
Campbell Barton
9a00cc55c1 - editmesh select mirror (in editmode select menu)
- weight blending (Vertex specials menu), currently blends from surrounding unselected verts (nice for blending edge loops), but will eventually support face mask mode.
2009-10-20 16:31:03 +00:00
Ton Roosendaal
5d0f5d210a Fix in KDL for gcc 3.3 compilation
Thanks to Benoit Bolsee and Alexander Clausen for help!
2009-10-20 16:02:41 +00:00
Daniel Genrich
b2d771a438 Smoke:
* Use GL_QUADS and GL_TRIANGLES instead of GL_POLYGON for faster drawing
* Use variable count of slices
2009-10-20 15:51:25 +00:00
Ton Roosendaal
0e5a6a21e8 Fixes to get Blender compile and run on PowerPC OSX 10.3, gcc 3.3
(yes antique, but having 5 year old OS's work is very cool)

In short:
- include <cmath> after <math.h> fails
- STL template issues (recursion, syntax)
2009-10-20 15:51:18 +00:00
Damien Plisson
5571d37e94 Cocoa:
- fix windowDidResize event not forwarded in some cases on 10.6
- fix crash on repeated Cmd-Q + Cancel quit actions
- place stub for .blend drop on blender app icon
2009-10-20 15:23:04 +00:00
Campbell Barton
4197253b26 split weight normalize into 2 operators, normalize and normalize_all.
Added an option for normalize_all that keeps the active group at its existing weight while normaling all other groups around it.
Thsi makes it easy to paint up to 100% where all other groups will use progressivly less until the active group is 100% and all others are 0.

Added weight operators to the toolbar
2009-10-20 13:59:26 +00:00
Brecht Van Lommel
cb8f7fd385 Auto Save
Auto save is now working again in 2.5. It will also remember now what
the location of the original file was when recovering it, so that
library links still work and saving the restored file does not save to
the temp directory. There is also a new Recover Auto Save operator
which will open the filebrowser in the temp directory and show the
auto saved .blends.

Implemenation Notes:

* Timer storage was moved from window to windowmanager, so we can have
  windowmanager level timers too now, doesn't make sense to have
  autosave timer attached to a particular window.
* FileGlobal now has a filename field storing where the file was saved.
  Note that this is only used when loading a file through the recover
  operators, regular file read doesn't use it, so copying the quit.blend
  manually over the original file will still work as expected.
* Jobs timer no longer uses operator now, this seems more like an
  internal thing, changing keymaps should not make it possible to break
  the jobs manager.
* Autosave is postponed by 10 seconds when a modal operator is running,
  e.g. transform or file browsing.
* Moved setting G.sce in setup_app_data before depsgraph updates, these
  can use the filename for pointcaches.
2009-10-20 13:58:53 +00:00
William Reynish
b8eec2b8fe Added a button in the header to toggle full screen mode. It'd be nice to have this right-aligned, but this doesn't seem possible in the layout engine currently. 2009-10-20 13:56:53 +00:00
Daniel Genrich
5e2ddea1f3 Smoke:
* Fix 3dview drawing issue which caused smoke to disappear in some cases, reported by nudelZ
2009-10-20 13:46:47 +00:00
Joshua Leung
00f3d83b6a Graph Editor: Added 2D Cursor
I've finally given in, and implemented a '2d-cursor' for the Graph Editor. This is simply represented as an additional horizontal line that meets with the current frame indicator, forming a cross-hair. It can be disabled from the View menu.

Currently, the only tool which takes this into account is the Snapping tools (Shift-S), where I've hooked up a tool I added some time ago. 

TODO:
- expose this cursor to the transform tools for scaling/rotation options...
2009-10-20 12:04:56 +00:00
William Reynish
ec6bccfad1 Renamed the modifier category 'Physics' to 'Simulate'. Seems to better encompass those modifiers. 2009-10-20 11:26:21 +00:00
William Reynish
c01c716346 *Made the Add Constraint menu similar to modifiers, with categories in columns. Makes them consistent, and also ensures the menu fits even on smaller displays.
*Put the Modifiers tab *before* the ObData (mesh, curve etc) tab, because modifiers actually apply to Object , not the ObData, even though the opposite would appear to make more sense.
2009-10-20 10:41:44 +00:00
Campbell Barton
9f841f5b35 weight paint operators - normalize/clean/invert 2009-10-20 10:19:48 +00:00
Benoit Bolsee
cf29a23723 Use Eigen2 2.0 head version rather then 2.0.6. It contains various bug fix. 2009-10-20 09:50:24 +00:00
Brecht Van Lommel
2c45509805 Renamed "Save Key Configuration" to "Export Key Configuration", so it
is clear this is different from "Save As Default".
2009-10-20 08:47:28 +00:00
Damien Plisson
1f9d8826db Cocoa:
- fix 10.6 API used in window resizing callback causing crash on 10.5 systems (Thx Jasper Mine for the bug report)
- implemented min window size enforcement to prevent tiny windows messing up blender's internal ui layout (same as done by Campbell on X11, is a partial fix of bug #19550)
- added (commented) code for enabling multithreaded opengl (this optimization is here for experimental tests, not for mainstream, so bleeding edge testers would want to uncomment the three "Multithreaded opengl code : uncomment for enabling" sections)
2009-10-20 08:13:12 +00:00
Brecht Van Lommel
8a8e00af07 Attempted fix for mingw buildinfo.c compile problem. 2009-10-20 08:01:17 +00:00
Campbell Barton
cae71123e5 set the min size hints for x11 to prevent tiny windows messing up blenders internal ui layout 2009-10-20 07:51:42 +00:00
Joshua Leung
8bc1087e2e Fixes for Path-Renaming Fix:
* Now the old/new names get tagged with [" "] before the search and replace operation, which should alleviate problems with searching for 'bone' and ending up with all instances of 'boney' 'boney.r' etc. also getting renamed.

* Cleaned up some compiler warnings, and removed an unused function from an earlier attempt at this work.
2009-10-20 04:07:57 +00:00
Joshua Leung
7f133f65b2 Bugfix #19663: Renaming named data doesn't fix F-Curves
RNA Paths used in F-Curve, Drivers, etc. now get renamed when some data that they use gets renamed. This only works when things like Bones, Constraints, Shape Keys, and Modifiers get renamed, but other cases can get added easily. 

The code here only performs simple string replacements, so there is the potential for problems when several sets of data with the same names are present. For example, if there are multiple armatures with bones that have the same names, renaming a bone on one armature (with a bone on another armature having the same name) will break all the drivers on the other one, even though they aren't really connected. However, I don't expect the aforementioned scenario to really be a problem in most production scenarios.
2009-10-20 03:44:35 +00:00
Guillermo S. Romero
9e6d1c6cfa Rearrange includes, and more fill_paths code. 2009-10-20 02:20:00 +00:00
Martin Poirier
b8141658a8 etch-a-ton RNA and UI, back in 2.5 2009-10-20 00:45:51 +00:00
Campbell Barton
fcc27ca8aa separate image strip length popup 2009-10-19 21:34:38 +00:00
Andrea Weikert
059d4f181c file browser
* the code for BLI_is_dir can be shared on Windows, no need of extra implementation - error was usage of BLI_exists instead of BLI_exist! 
* left BLI_is_dir in since it's nicer to read and understand
* also removed deprecated outliner_header from MSVC projectfiles.
2009-10-19 19:26:28 +00:00
Campbell Barton
0ce2950649 fix for crashing when unlinking a world from a scene 2009-10-19 19:17:05 +00:00
Martin Poirier
631fbf88e8 Consolidate tube and cylinder primitives.
Removing old add tube operator and replacing it with add cylinder. The resulting operator is called add tube, since that's the name in the menu. Other people can debate about the name and change it later if they feel like it.
2009-10-19 19:16:15 +00:00
Martin Poirier
45a21e4736 Some cleanup for particle edit snap.
Update comment to point at the root of the problem.
2009-10-19 18:49:04 +00:00
Guillermo S. Romero
680e724e37 Continue development of bfile system.
Still not usable, but some parts could be made more portable already.
Help welcome for MacOSX and MSWindows calls and paths.
2009-10-19 18:44:09 +00:00
Campbell Barton
1f4d07fd19 run flushTransParticles after snapping applyProject so you can project/snap particles in editmode 2009-10-19 17:50:26 +00:00
Ton Roosendaal
401c185fbc Get 2.5 trunk to compile. this C++ code failed for gcc 3.3.
Error log:

/usr/include/gcc/darwin/3.3/c++/cmath: In function `float std::ceil(float)':
/usr/include/gcc/darwin/3.3/c++/cmath:175: error: parse error before `(' token
/usr/include/gcc/darwin/3.3/c++/cmath: In function `float std::floor(float)':
/usr/include/gcc/darwin/3.3/c++/cmath:249: error: parse error before `(' token
/usr/include/gcc/darwin/3.3/c++/cmath: In function `float std::fmod(float, 
   float)':
/usr/include/gcc/darwin/3.3/c++/cmath:267: error: parse error before `(' token
2009-10-19 17:47:24 +00:00
Campbell Barton
031da438e4 - enable snap to work for particle editmode so you can snap onto the emitter.
theeth: maybe there needs to be a new SnapMode for this? - SNAP_SELF?, like editmode but without setting t->editob

- dont run special_aftertrans_update on scene objects when after sequencer transform
2009-10-19 17:20:09 +00:00
Brecht Van Lommel
5821e0ddf7 Patch #19667: cmake/windows build info now has time & date,
patch by Guillaume, thanks!
2009-10-19 17:18:31 +00:00
Brecht Van Lommel
48f3e3340a Fix #19618: invalid vertex group data could be created when
assign vertices without an existing vertex group, causing e.g.
armature modifiers to crash.
2009-10-19 17:11:42 +00:00
William Reynish
7cc9998eb4 Added old 2.4x keymap entries for Open, Save As, and Save Image, per request from Ton. 2009-10-19 17:10:16 +00:00
Brecht Van Lommel
cb44f29043 Fix #19574: winbuildinfo.h error when compiling with cmake on windows. I've now removed winbuildinfo.h code and let scons on window just set environment vars like other operating systems. Note that cmake still doesn't get the date information on windows, implementation is missing for this. 2009-10-19 16:55:51 +00:00
Brecht Van Lommel
85a8f315b4 Bugfix: scons builds didn't print build info when running blender -v. 2009-10-19 16:29:26 +00:00
Brecht Van Lommel
16c1a2944c Fix/workaround #19617: new raytracer use of SSE is crashing Mingw builds,
so disable SSE in that case now.
2009-10-19 15:58:09 +00:00
Brecht Van Lommel
653815923f Fix #19523: spot lamp blend display size was tweaked so it was always
showing, but that also is confusing because it then shows the wrong
size, so just hide it now when blend size is 0 or 1.
2009-10-19 15:53:57 +00:00