Commit Graph

23723 Commits

Author SHA1 Message Date
Matt Ebb
94102b7017 Missed this file too 2010-04-14 07:09:01 +00:00
Matt Ebb
f24573720c Forgot to add new files 2010-04-14 06:45:22 +00:00
Matt Ebb
486796ce31 * Interaction Presets
This adds a new presets menu in the splash screen and the Input section of
User Preferences to choose a preset interaction style, consisting of key configurations
and also other user preferences such as select mouse button, view rotation style, etc.
Currently, just 'Blender' and 'Maya' presets are included, hopefully we can have more
presets contributed (and maintained!) by the community.

It's best to keep these presets minimal to avoid too many key conflicts. In the Maya one
I changed the view manipulation key/mouse combos and also the transform 
manipulator keys, not much more than that.

To save an interaction preset, open the user preferences Input section, and press the 
[ + ] button next to the presets menu. It will save out a .py file containing any edited key 
maps and navigation preferences to the presets/interaction folder in your scripts folder.

---

Part of this commit changes the way that key maps are exported/displayed in 
preferences - now partial key configs are allowed. Previously it would export/import the 
entire key configuration, regardless of whether individual key maps were edited or not 
(which would make them more susceptible to conflicts in unexpected areas).

(note, in blender terminology, a key map is a category of key items, such as 
'Object Mode' or 'View 2d'.)

Now, the export and the UI display work in a similar way to how key maps are 
processed internally - Locally edited key maps (after pressing the 'Edit' button) are 
processed first, falling back to other key maps in the current key config, and then falling 
back to the default key config. So it's possible for a key config to only include a few 
key maps, and the rest just gets pulled from the default key config. The preferences 
UI display works like this too behind the scenes in deciding what to show users, 
however using it is just like it was before, the complexity is hidden.
2010-04-14 06:27:50 +00:00
Campbell Barton
85590301a5 fix for crash when a register script sets material colors, also made some changes to modifier formatting. 2010-04-13 22:43:48 +00:00
Joseph Eagar
6c01295a0a cloth init function not being called 2010-04-13 22:18:35 +00:00
Campbell Barton
582f1621e5 there were duplicate modifier init's, harmless but better remove. 2010-04-13 22:11:01 +00:00
Joseph Eagar
0d557969b8 used private mutexes to avoid deadlocks 2010-04-13 20:34:40 +00:00
Janne Karhu
953d938ad1 Testing for the need to quick cache was causing slowdowns on files with many duplis.
* The test is now only done when some object that uses cache has actually changed.
* The added scene->physics_settings->quick_cache_step is only an internal counter, not a user changeable value.
2010-04-13 20:06:55 +00:00
Janne Karhu
18fb3aa5bf Fix for [#21983] Entering Particle Edit mode crash 2010-04-13 19:44:16 +00:00
Andrea Weikert
2c0287660c MSVC projectfiles update
* big modifier refactor
* added include path to pthreads for BL_gpu.vcproj and blender.vcproj - hopefully only temporarily. Is needed because BLI_threads.h includes <pthreads.h> header!!!
2010-04-13 19:39:28 +00:00
Ton Roosendaal
cfb5fec030 Template for 'Running Jobs" now shows Composite thread, for node space. 2010-04-13 17:15:11 +00:00
Ton Roosendaal
bc4d93cc16 Adding 'running jobs' button in node header. 2010-04-13 17:11:53 +00:00
Joseph Eagar
fe3a9a2f30 fixed make local bug; it was only looking at editable objects, which of course lib objects are not. 2010-04-13 16:52:18 +00:00
Joseph Eagar
86aa4e5c3d prevent images from freeing gpu buffers if not run within the main thread, instead they are queued to be freed the next time GPU_image_free() is run from the main thread. 2010-04-13 12:51:03 +00:00
Matt Ebb
e50f798647 Fix for hue correct node, was clamping value of hsv unnecessarily. 2010-04-13 08:30:53 +00:00
Sergey Sharybin
403c1e2a8e Todo #21831: Deform modifier is applied to base mesh instead of
multires modifier if both are in the stack (patch #21965)

This patch also removes limitation of multires reshaping when
destination object has got modifiers after multires modifier.
2010-04-13 06:06:49 +00:00
Dalai Felinto
449c270cd5 BGE: stubs update (bplayer) 2010-04-12 23:02:14 +00:00
Martin Poirier
584dbcc2fc [#21993] Edge Slide operator should disable projection snapping
Adding proper flag.

If there are others like that, other people can fix them too, it's easy peasy.
2010-04-12 22:42:09 +00:00
Campbell Barton
4824e7eeeb modifier include cleanup, this might need fixes on other systems but hard to avoid.
also removed unused stuff from cmake modifier file
2010-04-12 22:33:43 +00:00
Ton Roosendaal
7814d42ec7 Button panels need to get handlers and keymaps... but for now sneaked
in a handy key : Akey in buttons window on a panel will
open or close it.
2010-04-12 17:45:51 +00:00
Janne Karhu
919565f196 Subframe calculations for particles, original patch by Raul Fernandez Hernandez
* Increasing subframe count increases stability for SPH fluid and Newtonian particles
* Also small tweaks into physics ui panel to better fit new subframes value
* This commit also fixes the moving fluid emitter problem as described by Raul in the mailinglist
2010-04-12 17:34:06 +00:00
Guillermo S. Romero
99d755656d Rearrange the includes a bit. 2010-04-12 16:15:38 +00:00
Arystanbek Dyussenov
d15c7a2eae Merge -c 28147 from COLLADA branch into trunk. 2010-04-12 15:32:59 +00:00
Matt Ebb
3042f9be8e Fix [#21953] Texture space size seems not updated constantly 2010-04-12 05:04:49 +00:00
Dalai Felinto
7135edb75d BGE: TexFace panel (from patch #21780 from Mitchell Stokes + some changes)
the patch exposes a rna property to get the active edit mode face. This is a hack.
However it's a small patch (a.k.a. easy to revert later if needed).

The official plan is to wait for BMesh before tackling it properly. Nevertheless TexFace panel is really important for BGE.

Missing: operators to copy the current parameters to other selected faces.

* note: what I changed from the original patch is the UI script. The pool wasn't defined and it was using tabs.
2010-04-12 03:06:49 +00:00
Guillermo S. Romero
091f70e92d Work around to keep compiler going with zlib.h:
In file included from MOD_fluidsim_util.c:62:
/usr/include/zlib.h:1440: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gzseek64’

TODO: string.h appears twice and "" vs <> seems arbitrary.
2010-04-12 02:56:41 +00:00
Martin Poirier
e5a01c66a3 Fix external image editor (needs to be a list, otherwise extends adds each character as a list item).
Note: The default value ("start") on windows doesn't work. Start is not a real program.
2010-04-12 02:43:17 +00:00
Matt Ebb
c79587071f Fix [#21972] Inclusive selection doesn't work for Faces 2010-04-12 02:10:50 +00:00
Matt Ebb
2b547dac8f Fix many compile errors in fluidsim modifier.
Please enable+compile before committing!
2010-04-12 01:26:56 +00:00
Guillermo S. Romero
8e4cbaa0c7 Modifiers moved, adjust accordingly. 2010-04-12 01:23:55 +00:00
Campbell Barton
9563a85242 more header cleanups 2010-04-12 01:09:59 +00:00
Matt Ebb
93c1a7354f Fix [#21982] Operator bug: Edit mode
Hid the 'Enter Edit Mode' property when adding an object, not necessary anyway.
2010-04-12 00:40:56 +00:00
Campbell Barton
8c3ab1c2a4 - use more inline math funcitons where possible
- swapped in less verbose math functons
- modifier include cleanup
2010-04-12 00:36:50 +00:00
Matt Ebb
7d98982295 Patch from Xavier Thomas, tweaks/fixes to FFMPEG YUV conversion code 2010-04-11 23:52:47 +00:00
Guillermo S. Romero
fbf8287ed1 SVN maintenance. 2010-04-11 23:20:03 +00:00
Campbell Barton
909493eac9 booleanops.c was moved to MOD_boolean_util.c, remove empty file. 2010-04-11 22:20:02 +00:00
Campbell Barton
3fdaf5cecc [#14437] Modifier Stack Refactor
patch by Ben Batt (artificer)

Updated patch for 6 or so modifiers added since the patch was written.

- tested with CMake and SCons
- fixed one error were flags were being added to the fluids type.
- remove BKE_simple_deform.h, simple_deform.c, move functions into MOD_simpledeform.c since there were problems with circular deps.
- moved some fluid and boolean functions used by modifiers too.
2010-04-11 22:12:30 +00:00
Dalai Felinto
139a0e7cb8 Copy Constraints Operator
the C code to copy the constraint was already there (same as 2.49) so this operator simply exposes it.
I'm using the name Copy Constraints to Others based on what we have in material operators (e.g. Copy Material to Others).

If we bring back the whole Copy Attributes menu (old Ctrl+C) having the individual operators is still important for scripts. Nevertheless I'm not comfortable with the name (to Others sounds unnecessary verbose) but so far having the functionality back is important (request from Caju Studio). I'll be glad to make any change later if needed.
(no shortcut for that, to use it go to userpref->keymap and assign a shortcut for this operator or add it to the toolshelf)
2010-04-11 22:08:58 +00:00
Peter Schlaile
978609aa44 == Sequencer ==
Made custom proxy files a lot more sensible to select
(upgraded to filepath get/setters)

Changed semantics, since custom files don't make much
sense without custom directories...
2010-04-11 19:26:46 +00:00
Peter Schlaile
a6b8ac5452 == Sequencer ==
Proxy render size settings is now back. (Maybe still in need of some sensible
icons, though...)

Also: waveform color seperation works in N-keys dialog again.
2010-04-11 18:37:49 +00:00
Guillermo S. Romero
0b99fd9164 SVN maintenance. 2010-04-11 16:41:43 +00:00
Martin Poirier
56b1c4e47f Specific operator for Push/Pull (no need to go through the generic operator and it makes it available in the operator search) 2010-04-11 16:04:11 +00:00
Campbell Barton
67cfc427ee PyAPI
- added new mathutils.Color() type, use with rna so we can do for eg:
 material.diffuse_color.r = 1.0
 # also has hsv access
 material.diffuse_color.s = 0.6

 - made Mathutils and Geometry module names lowercase.
2010-04-11 14:22:27 +00:00
Campbell Barton
4d2bc9f907 mindrones reports cmake 2.4 doesnt work anymore, since 2.8 is current, bumping the minimum version requiired 2010-04-11 12:20:30 +00:00
Campbell Barton
fe9a22a018 py api file rename
- prefix mathutils api.
- 2 blf.c files (annoying for debugging)
- py api docs ignore keying sets as with operators.
2010-04-11 12:05:27 +00:00
Ton Roosendaal
4c5fe03c9f Long outstanding panel feature: press ENTER with mouse on header will
open/close it. Will allow quicker inspections without mouse strains.
2010-04-11 11:52:39 +00:00
Damien Plisson
5c24ce16b2 Cocoa fix [#21866] : force mouse move event to be sent upon cursor position set request 2010-04-11 11:19:30 +00:00
Ton Roosendaal
f3f8855dfe Zoom in/out for Composite Node backdrop is (temp?) Vkey and SHIFT+V.
Scrollwheel is being fully swallowed there now...
2010-04-11 10:49:47 +00:00
Campbell Barton
ee0a217be3 python function to remove drivers.
eg:
 bpy.context.object.driver_remove("location")

ANIM_remove_driver now accepts -1 as an index for removing all drivers from one path.
2010-04-11 09:13:37 +00:00
Dalai Felinto
a8bca52d09 BGE fix #20456 - 2.5: mouse position problem (offseted by 1 vertically)
In Blender 2.49 the win width and height were been calculated including an extra pixel (e.g. a fullscreen editor would be (width + 1) by (height + 1) )
In opposite to that, Blender 2.5 window/editor code were fixed to have the exact width,height size.
So although the BGE canvas code was still the same as 2.49 it was producing a wrong result.

I'm also adding some commentaries in the setViewport code. BGE is setting the viewports 1 pixel larger.
the setViewport command is been used as if one should pass (minx, miny, width, height), while it should be (minx, miny, maxx, maxy). I will take care of that later, if any one has extra comments on that, please let me know.
2010-04-11 01:53:21 +00:00