Commit Graph

34472 Commits

Author SHA1 Message Date
Dalai Felinto 782f0b6382 bge camera actuator: -X and -Y axis
The camera actuator only allows to look the object from its front face.

Given that Blender takes -Y as the default forward orientation, the current
functionality doesn't let a camera to track an actor from behind.

This patch allows for -X and -Y axis tracking. This way a camera over the
shoulders of a character is possible (without resorting to rotate the
mesh/armature original orientation.

- patch reviewed by Campbell Barton, thanks
2012-01-11 07:27:39 +00:00
Sergey Sharybin 0effb45d58 Fixed typo in comments for libmv build rules files 2012-01-11 07:19:44 +00:00
Campbell Barton 1ad1b93622 fix [#29794] Cannot hide faces in weight-paint mode
bug was introduced with cycles merge.
2012-01-11 07:03:47 +00:00
Campbell Barton cda5d1769d minor changes to BLF api use
- replace calls to BLF_width & BLF_height --> BLF_width_and_height
- no need to call strlen() on length value passed to BLF_draw(). this already checks for \0 char.
2012-01-11 05:45:39 +00:00
Campbell Barton f1c229e8b3 Change how object menu selection works, use an operator with an enum rather then a menu with 'OBJECT_OT_select_name',
remove 'OBJECT_OT_select_name' operator since its no longer needed.
2012-01-11 03:40:20 +00:00
Campbell Barton 482bad6dcc remove spot_interactive() which is now handled by generic py operator. 2012-01-11 02:25:43 +00:00
Campbell Barton def948cc28 patch [#29853] UTF-8 copy&paste for X11 GHOST 2012-01-11 00:34:42 +00:00
Campbell Barton ef3fbdd683 minor edits to xml presets
- check 'SKIP_SAVE' property (used for active theme area which become annoying)
- indent presets better
2012-01-11 00:22:21 +00:00
Campbell Barton 535d27dac2 when building blender as a py module use add_library(... MODULE on all systems, was SHARED on linux/windows. 2012-01-11 00:09:46 +00:00
Joshua Leung dbdd09869b Commenting and comment fixing
* Fixed incorrect description for scene.keyingsets list
* Added dividers to try and make it clearer what structs were related.
  * Reshuffled TransformOrientation struct since it occurred right in the middle
of all the other Paint-Mode stuff
2012-01-10 23:14:20 +00:00
Guillermo S. Romero 2ef6163747 SVN maintenance. 2012-01-10 19:45:20 +00:00
Peter Larabell eccc04c87f 2012-01-10 19:08:08 +00:00
Jens Verwiebe 538a9a2fd3 OSX: cleanup for cmake MODULE compile, not working yet, needs more investigation 2012-01-10 19:01:27 +00:00
Jens Verwiebe 68a2ac668e OSX: fix compiling Blender as MODULE 2012-01-10 16:47:20 +00:00
Campbell Barton 9d4f3fdb81 move theme presets out of the header into the main panel. 2012-01-10 16:30:16 +00:00
Campbell Barton 032a6f63a7 enable xml preset save/load, replace install/export themes with these. 2012-01-10 16:20:01 +00:00
Campbell Barton 057d6e8815 initial support for XML presets, these have the advantage...
- missing attributes are ignored and don't error out like they would on a script when the API changes.
- don't run code (secure to run from untrusted sources).

use xml presets for themes.
2012-01-10 15:08:12 +00:00
Sergey Sharybin 278179e0c0 Fix #29827: 2.61 Scale and translate bugs
Scale lead to crash because of incorrect check for buffer size.
Translate bug was caused by ignoring buffer offset.
2012-01-10 14:54:51 +00:00
Brecht Van Lommel 545dc90a7f Fix regressions in the color management / dither patch. 2012-01-10 14:24:18 +00:00
Brecht Van Lommel 84c6daedd7 Fix jobs progress display in taskbar incorrectly flashing on/off with multiple
jobs active.
2012-01-10 14:24:02 +00:00
Bastien Montagne d09a73b159 Adding the kyrgyz language. 2012-01-10 14:02:27 +00:00
Campbell Barton 8391f534ab remove WITH_OGG define, its not used anywhere. 2012-01-10 13:33:53 +00:00
Campbell Barton f85c1cda74 Some editors choke on lines over 100,000 chars long. Better split. 2012-01-10 11:22:41 +00:00
Campbell Barton 0e4f4acc2f comment unused vars 2012-01-09 22:18:04 +00:00
Sergey Sharybin 0e4e608b71 Camera tracking: fixes for preview widget
- Clamping of image on boundaries now happens nicely
- Looks like to prevent dark edges on image boundary when doing
  bicubic interpolation, margin should be 3px. Maybe somebody can verify this?
2012-01-09 20:19:07 +00:00
Sergey Sharybin f3c2ec7658 Camera tracking: minor code cleanup of RNA file, no functional changes 2012-01-09 20:18:57 +00:00
Sergey Sharybin 5bf5d5a844 Camera tracking: tracks copy/paste operator
This commit implements basic clipboard support for movie tracking data
int clip editor. Used own implementation of clipboard like it's done
for sequencer.
Ideally it needed to be switched to more general clipboard system, but
currently this system is designed for text data only and it need to
be re-designed itself. But this feature is quite useful since object
tracking is implemented, so it should be OK to live with such own
implementation for a while.
2012-01-09 20:18:48 +00:00
Sergey Sharybin dadb0d8122 Camera tracking: marker's frame number is now writable from python api 2012-01-09 20:18:36 +00:00
Sergey Sharybin a69904aefe Camera tracking: improvements of python api
- marker_find_frame moved to MovieTrack.markers and called find_frame
- Added MovieTrack.markers.insert_frame to insert marker at specified frame
- Added MovieTrack.markers.delete_frame to delete marker from specified frame
2012-01-09 20:18:28 +00:00
Dalai Felinto 6bd8097765 ui typo + small fix
Blender internally deals with Font Objects, but as far as the user is concerned they are Text Objects.
Which, btw, makes me wonder why we have an 'F' as the logo for Text objects, and why the ob.type is 'FONT' in python

(I guess it's a Font Data for a Text object)
2012-01-09 20:13:03 +00:00
Brecht Van Lommel d7932ceea8 Cycles: multi GPU rendering support.
The rendering device is now set in User Preferences > System, where you can
choose between OpenCL/CUDA and devices. Per scene you can then still choose
to use CPU or GPU rendering.

Load balancing still needs to be improved, now it just splits the entire
render in two, that will be done in a separate commit.
2012-01-09 16:58:01 +00:00
Brecht Van Lommel 47d9c6689b Cycles: show elapsed time for F12/background render. 2012-01-09 16:57:46 +00:00
Brecht Van Lommel 8f37c143ed Cycles: small tweak to checker texture, scale rather than add with epsilon,
looks a bit better on all sides of a mesh.
2012-01-09 16:57:26 +00:00
Sergey Sharybin 7eb3b37bec Fix #29835: joining meshes leads to crash 2012-01-09 15:17:09 +00:00
Sergey Sharybin 8198880d44 Fix #29793: Physics go crazy if frames get skipped
Calculate cloth and softbody only for single frame time deltas
(like it's already done for smoke)
2012-01-09 14:08:06 +00:00
Campbell Barton ec58ff19ad have add_weight_mcol_dm() set the 4th corner of a tri faces color to 0, otherwise uninitialized memory gets copied about. 2012-01-09 10:38:22 +00:00
Campbell Barton a8176a9b48 WIP script to check results of different modifier combinations and display modes, useful for validating bmesh changes don't break specific modifier combinations. 2012-01-09 10:30:27 +00:00
Sergey Sharybin e701532e1d Tag unused argument 2012-01-09 09:30:51 +00:00
Campbell Barton a31c40ac00 bugfix for solidify modifier rim faces which were created from triangles, would get wrong customdata copied since it used the 4th index of a tri.
fixed already in bmesh.
2012-01-09 09:30:04 +00:00
Joshua Leung 99d4f5e52e Typo fix - thanks "Olson" on IRC! 2012-01-09 09:12:55 +00:00
Campbell Barton e0c41e66b8 dont draw object center dot for opengl render 2012-01-09 03:16:30 +00:00
Campbell Barton ecd463d20d fix an error rendering opengl weightpaint data wasn't working when python initialized opengl render on startup (needed for testing script). 2012-01-09 02:50:09 +00:00
Sergey Sharybin eca9a4ff40 Fix #29828: Reloading background movie clip crashes Blender
Crash was caused by invalidating scopes used by space clip editors. It shouldn't
actually happen in movie clip reload operator due to it will happen on NA_EDITED
notifier handler sent to movie clip context.
2012-01-08 19:51:14 +00:00
Brecht Van Lommel 8bfa48384d Cycles: checker texture node, patch by Thomas. 2012-01-08 14:55:43 +00:00
Brecht Van Lommel 4487103e61 Color:
* Accelerated sRGB <=> linear conversion using lookup table, this can speed up
  loading of images in the compositor and simple renders quite a bit.
* Dithering now uses the Floyd-Steinberg algorithm. Previously it would simply
  randomize each pixel slightly, adding noise, now that should be reduced.

Patch #29309 by David M.
2012-01-08 13:55:53 +00:00
Lukas Toenne 3dead22c73 Improved auto-hiding of unused sockets for collapsed nodes.
Instead of generally hiding all unused sockets in collapsed mode, the sockets now have a new explicit flag SOCK_AUTO_HIDDEN, which is only toggled when the hide_toggle operator is called. This way the auto-hidden sockets stay as they are when nodes are duplicated etc. The new flag is necessary to distinguish between manually hidden sockets (via hide_sockets_toggle operator) and automatically hidden sockets and restore the node state when unhiding a node.
2012-01-08 10:23:19 +00:00
Alexander Kuznetsov d6e0d0fd89 Fix for [#28978]
Disabling mode switching in panning in 2d as it is disabled in 3d also.
Apparently, it is a not good idea to call modal method from a modal method as the last won't be canceled.
2012-01-08 05:10:52 +00:00
Joshua Leung fd889253e4 Code cleanup
Removing some old + unused stuff that's not coming back. For example, the code
for the old "specials menu" used everywhere/all contexts.
2012-01-08 04:14:13 +00:00
Thomas Dinges 549c75fc61 Fix for last commit, missed check for ob, could cause errors when object was removed. 2012-01-06 22:55:15 +00:00
Sergey Sharybin d919c30ac3 More whitespace cleanup in python scripts 2012-01-06 21:25:28 +00:00