Commit Graph

18603 Commits

Author SHA1 Message Date
Campbell Barton
e62e66fe8a corect error in last commit. 2010-01-08 20:55:13 +00:00
Brecht Van Lommel
9ceed4043f Fix #19659, #20387, #20489, part of #20565. VBO's in edit mode were not
working well, and no one seems to be fixing it, so I've just removed the
code for this. It has to be replaced eventually for bmesh anyway.
2010-01-08 17:53:17 +00:00
Campbell Barton
1f1245a92a Remap Relative paths save option.
If you have a blend file and want to save in a new directory enabling this will save with the paths corrected relative to the new directory.
2010-01-08 17:50:55 +00:00
Martin Poirier
5dffae2346 RNA Function Save Image accepts a Scene as optional argument (for image parameters). It uses the scene in context otherwise. 2010-01-08 17:47:27 +00:00
Brecht Van Lommel
14646a143b Fix #20613: crash with subsurf+shrinkwrap+smooth modifiers. 2010-01-08 17:38:16 +00:00
Brecht Van Lommel
e5b2fcfa40 Fix #20592: camera name drawing was unreadable, accidentally drawn
using stippled line.
2010-01-08 14:45:26 +00:00
Damien Plisson
f9be960690 Fix quicktime QtKit compile issue 2010-01-08 14:42:52 +00:00
Brecht Van Lommel
8f7c106e64 Fix #20604: Make Normals Consistent (Ctrl N) doesn't respect selection. 2010-01-08 14:41:32 +00:00
Damien Plisson
05af8dfe53 Disable anti-aliasing initialization, was causing GL_SELECT issues
NVidia (at least) GL drivers don't provide correct picking through GL_SELECT when the GL context is initialized with sample buffers.

So we can't have FSAA on for now as it breaks border,lasso,.. select.
2010-01-08 14:40:47 +00:00
Campbell Barton
a868e8623c - RNA support for returning copied strings from functions, flagging strings as PROP_THICK_WRAP does this.
- scene.render_data.frame_path(frame=num), returns the output path for rending images of video.
- scene.render_data.file_extension, readonly attribute, gives the extension ".jpg", ".mov" etc
- player support was guessing names, use the above functions to get the actual names used, accounting for #'s replacing numbers.
2010-01-08 13:52:38 +00:00
Joshua Leung
7079047538 Animation Channels Drawing Tweak:
A solid color backdrop is now drawn behind the mute/protect toggles and sliders, reducing the visual clutter with long names still appearing behind the UI widgets.
2010-01-08 11:14:30 +00:00
Brecht Van Lommel
ccb54eff2e FSAA: properly disable it for first window draw, remove obsolete backbuffer
disable code, and only enable it for 3d drawing in the 3d view.
2010-01-08 09:30:36 +00:00
Matt Ebb
ceab17ee17 Fix for problems in previous commit when buildinfo wasn't enabled. 2010-01-08 06:05:42 +00:00
Matt Ebb
13002c1645 Properly refresh the node tree when making links with the node Make Links tool 2010-01-08 05:54:03 +00:00
Matt Ebb
ce538a0694 Added the svn revision number to the splash screen (when buildinfo is
enabled). Also fixed cmake so buildinfo works.


Note to all:
** Please mention the revision number when making a bug report **
2010-01-08 05:51:51 +00:00
Martin Poirier
59a8c295c6 Make the image open operator work even if there's no scene in context. 2010-01-08 03:55:06 +00:00
Guillermo S. Romero
b517ceb374 SVN maintenance. 2010-01-08 02:54:33 +00:00
Martin Poirier
bb5f8bd0af Image RNA api: Don't crash if can't acquire buffer from image when saving image to disk. 2010-01-08 02:45:51 +00:00
Joshua Leung
28b1824fd0 Bugfix #20605: Shape key values not keyable from mesh data panel. Keyable from Datablock browser.
See the bugreport comments for full breakdown of the fix. 


--

The change in brush.c is to get blender compiling again, after my previous commit which tried to fix a compiler warning related to this (but in the header file instead).
2010-01-08 02:02:52 +00:00
Joshua Leung
cddd784e44 Grease Pencil: Lock current frame option
It is now possible to make Grease Pencil Layers to keep displaying and editing the current sketch-frame with this option. This allows to draw a frame which contains markings made for different times (i.e. a spacing/timing chart that you can keep adding to as you scrub to different points on the timeline).

Use the clipboard/camera toggle (the one beside the visibility toggle) to enable. This should get an icon of its own at some point...
2010-01-08 01:39:41 +00:00
Campbell Barton
d08fe22bc6 fly mode doesnt need this workaround now - it broke fly mode when the camera was a child of another object. 2010-01-08 01:14:06 +00:00
Joshua Leung
f3a6474537 Animation Visualisation Cleanups - Part 2:
* Finished baking code for motion paths, generalising it so that it works for both Objects and Bones. 
It is based on the old code for baking bones, although I have modified the updating code to use a more 'correct' method of updating dependencies. However, this may turn out to be too slow, and another API method should be added for that...

* Moved some of the old version-patching code for animviz settings out of the drawing functions, instead doing this on the version patching proper.

* Added RNA support for the new AnimViz types, and included RNA access via their users too. The old settings have still been left in for now, since there are still some things not ready to use yet.

----

* F-Curve's with sample points (i.e. sounds to F-Curves) now perform linear interpolation between sample points instead of using constant interpolation.
2010-01-07 22:54:05 +00:00
Matt Ebb
320a09c232 * Use color wheel template for RGB node 2010-01-07 22:42:59 +00:00
Matt Ebb
3bfec4e31c Add ability to cancel/revert dragging on color picker widgets with Escape, same as other widgets 2010-01-07 21:52:04 +00:00
Martin Poirier
00a099e44e rna image api: with dummy ImageUser, this can save RenderResults now. 2010-01-07 20:25:51 +00:00
Brecht Van Lommel
9f2c6296cb Fix for memmove error in RNA collecton remove, could crash on
removing items in some circumstances.
2010-01-07 19:58:17 +00:00
Martin Poirier
6426a43c3c Make scene optional in BKE_write_ibuf (only used for stamping) 2010-01-07 16:57:17 +00:00
Campbell Barton
bce42d6b5e group instance still didnt work in some cases, now tag ID flag when linking as well as appending so its easy to know if an ID is newly added or not. 2010-01-07 16:19:38 +00:00
Campbell Barton
0983aae019 last commit didnt work properly, all groups were added. Tested to work with existing groups, link & append. 2010-01-07 14:59:22 +00:00
Campbell Barton
ba645ad67e option to instance groups when linking or appending. 2010-01-07 14:28:00 +00:00
Campbell Barton
e77fadf066 fix for painting bug added since 25391 (own fault)
Making shell_angle_to_dist use radians was needed for solidify but somehow broke paint. Need to look into further but for now this fixes it.
2010-01-07 12:41:07 +00:00
Matt Ebb
c1d5104703 Fix for eyedropper not calling proper updates. Silly! 2010-01-07 11:37:57 +00:00
Matt Ebb
50305dfd65 Fix [#19820] linking material nodes in node editor doesn't update the material preview 2010-01-07 11:09:29 +00:00
Thomas Dinges
3d8b5860d9 Fix for Color Picker Eyedropper crash. Thx Matt :) 2010-01-07 11:01:12 +00:00
Matt Ebb
26fcb7f9d2 Fix [#19664] updating key in graph editor doesn't update value for
Shapekeyweight in realtime
2010-01-07 10:49:16 +00:00
Damien Plisson
f0a22ac2f9 OpenGL anti-aliasing for 3D view, user selectable
Enables AA only for 3D view, and gives the user the option to turn it on/off (in system panel of user prefs)
2010-01-07 10:32:48 +00:00
Matt Ebb
cf9b728c6a Color Picker work:
Restored the old Eyedropper tool from the 2.4 colour picker. Now it's an operator, 
working nicely using rna properties (fixes #19475 and some todo items)

This ended up being a bit more work than expected, it involved converting the 
colour picker to use RNA properties directly, rather than temporary values. This has 
several advantages, including being able to type in RGB values greater than 1, 
however there are still some redraw issues with sliders.

Also removed the alternate color pickers after this time spent testing, the current one 
should be sufficient, or alternatives to the wheel can possibly become preferences 
in the current design.

Converting the picker to RNA also made it very trivial to make a cool new 
ColorWheel template, which can be embedded in UI layouts. I've enabled it already 
in texture/vertex paint brush properties and the sequence editor color correction:
http://mke3.net/blender/devel/2.5/colorwheels.jpg
2010-01-07 09:55:11 +00:00
Dalai Felinto
4463597dcd PyDoc updated for Rasterizer setEyeSeparation and setFocalLength + blenderplayer building again.
stubs.c update patch by Mitchel Stokes - Moguri
2010-01-07 05:23:54 +00:00
Matt Ebb
23764238e5 Replaced lasso gesture filling code with scanfill, not 100% as nice, but simpler and more compatible. 2010-01-07 01:27:10 +00:00
Campbell Barton
d3a718dc2f fix for own but in recent driver optimization [#20580] Driver Crasher rev [25763]
recalculate names when needed
2010-01-06 22:42:13 +00:00
Martin Poirier
f9177e21ce RNA API: image.save(path)
Saves an image to the specified path. Uses format and other parameters from the scene (simpler this way than having to explicitly pass them to the function).
2010-01-06 21:38:26 +00:00
Thomas Dinges
635113085d Keymaps:
*Wrong Text: Enable Axis Snap was used twice, one should be "Disable Axis Snap"
2010-01-06 20:29:49 +00:00
Martin Poirier
0cc7b5800c Renderer: Change default test_break function to check G.afbreek to work correctly in background mode correctly. 2010-01-06 20:16:01 +00:00
Damien Plisson
a994a52497 Disable OpenGL anti-aliasing by default for now. 2010-01-06 15:34:49 +00:00
Matt Ebb
907ee73e23 2 small view navigation features stolen from other apps :)
* Now, while rotating a 3D view with MMB held down, you can hold shift to switch to Pan or ctrl to switch to Zoom, without having to let go of MMB. While it sounds simple it makes things really smooth to use and eases repeated presses of MMB. One thing I liked from Max. It's also in the modal key maps, so you can change it to whatever you like.

* A similar thing, when panning a 2D View, you can hold LMB to switch to zoom, effectively making MMB+LMB zoom. This is not very useful on a mouse, but it's very nice for tablet use, being able to navigate with one hand (side switch+stylus press) very easily. This one's from Fusion.
2010-01-06 12:22:59 +00:00
Campbell Barton
e292b5badc fix for crash when setting a shapekeys name in rna, (probably other properties too).
When the shapekey was returned from the object it didnt use the data's ID which is expected elsewhere in RNA.

Transfer shape now also sets the name.
2010-01-06 12:19:46 +00:00
Brecht Van Lommel
83f677d9cf Fix #20519: shrinkwrap modifier doesnt work with subsurface modifier.
Fix #20516: subsurf modiefier+pressing add for smoke sims results in crash.
Fix retopo not working correct on subsurf mesh.

Various deforming modifiers were not correctly taking into account that a
derivedmesh is not necessarily a CDDerivedMesh, made utility functions for
this now.
2010-01-06 12:05:46 +00:00
Brecht Van Lommel
90fe04965b Particle edit: optimization for combing, was computing hair space too often,
and fix some warnings.
2010-01-06 12:00:53 +00:00
Damien Plisson
75f190bde8 OpenGL Anti-aliasing implementation for blender windows
Added GHOST_TUns16 numOfAASamples parameter to GHOST_CreateWindow to specify the number of AA samples (null if no AA wanted)
Implemented it in the cascade of GHOST classes.

Full implementation currently done for OSX/Cocoa, stubs for other OSes.
Moguri : it's ready for your win32 implementation !

Note that fallback to a non AA window (if gfx card doesn't support AA) is done inside GHOST OS specific layer, so that blender windowmanager still gets its window created properly.
2010-01-06 11:42:52 +00:00
Campbell Barton
33be6d855a patch from Kevin Roy (kiniou), [#20584] get the image size in pixels in Python API 2010-01-06 10:46:49 +00:00