Commit Graph

41743 Commits

Author SHA1 Message Date
Joshua Leung
fc1467df5f Auto key warning - Stripping down to basics
Now just a static icon + text display in corner of view. No blinking. No
red/orange text. No window borders.
2012-10-11 09:53:17 +00:00
Joshua Leung
d876e4876f Limit Distance Constraint - jpbouza Feature Request
The Limit Distance constraint is now allowed to use the owner/target space
settings. Previously this wasn't exposed it didn't seem sensible/useful.
However, this can be useful when dealing with dependencies between bones and the
armature gets scaled.

Usage notes:
- It is advised to select the same space for both owner and target, otherwise
the comparisons are meaningless
2012-10-11 08:26:49 +00:00
Campbell Barton
0bf1a16203 style cleanup 2012-10-11 03:25:19 +00:00
Campbell Barton
563aa57db2 fix [#32829] Crash when making linked Mesh with UV Map local 2012-10-11 00:56:34 +00:00
Campbell Barton
57004cfb5a style cleanup:
also add helper makefile targets:
* tbz - makes a tar.bz2 of an svn export
* test_style_qtc - outputs style checks in qtc task format.
2012-10-10 23:44:07 +00:00
Brecht Van Lommel
fe09b24e86 Cycles: per-BSDF normal input and new Bump node.
Each BSDF node now has a Normal input, which can be used to set a custom normal
for the BSDF, for example if you want to have only bump on one of the layers in
a multilayer material.

The Bump node can be used to generate a normal from a scalar value, the same as
what happens when you connect a scalar value to the displacement output.

Documentation has been updated with the latest changes:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes

Patch by Agustin Benavidez, some implementation tweaks by me.
2012-10-10 15:56:43 +00:00
Campbell Barton
e9a61cd29d quiet compiler warnings from recent merge. 2012-10-10 14:28:47 +00:00
Brecht Van Lommel
56f798db8c Cycles: make anistropic BSDF / tangent work without UV map, based on generated
coordinates map to a sphere.
2012-10-10 14:21:58 +00:00
Campbell Barton
725cfab2dc workaround for feedback loop when viewing-selected/all with a locked camera.
the camera could try include its own boundbox in its view.

now just skip the camera if 'All Regions' and lock view option is enabled.
2012-10-10 13:36:53 +00:00
Daniel Genrich
cb634b9100 Google Summer of Code project: "Smoke Simulator Improvements & Fire".
Documentation & Test blend files:
------------------
http://wiki.blender.org/index.php/User:MiikaH/GSoC-2012-Smoke-Simulator-Improvements

Credits:
------------------
Miika Hamalainen (MiikaH): Student / Main programmer

Daniel Genrich (Genscher): Mentor / Programmer of merged patches from Smoke2 branch
Google: For Google Summer of Code 2012
2012-10-10 13:18:07 +00:00
Brecht Van Lommel
f0a9b66469 Cycles: Anisotropic BSDF enabled, with tangents now computed from the active UV map.
It's using the Ward BSDF currently, which has some energy loss so might be a bit
dark. More/better BSDF options can be implemented later.

Patch by Mike Farnsworth, some modifications by me. Currently it's not possible yet
to set a custom tangent, that will follow as part of per-bsdf normals patch.
2012-10-10 13:02:20 +00:00
Campbell Barton
b4671d67ed - Ctrl+NumpadDel is now view-selected (all regions), ... was view cursor.
- Ctrl+Home: is now view-all (all regions).
2012-10-10 12:54:36 +00:00
Campbell Barton
38e6a2f2f2 fix error changing the view with a lock-camera-to-view on and smooth-view disabled. 2012-10-10 12:30:47 +00:00
Campbell Barton
cc50d58b20 add All Regions option to view_all (homekey), de-duplicate functions with view-selected. 2012-10-10 12:22:45 +00:00
Campbell Barton
844916d46e check addons are enabled before disabling them (would cause python exceptions when removing a disabled addon). 2012-10-10 11:37:38 +00:00
Campbell Barton
6514290d1d option for view3d-selected to use all regions (nice for viewing selected in quad-view),
currently not assigned to any keys.
2012-10-10 11:36:24 +00:00
Campbell Barton
dac3ddc531 minor refactor, move view selected rv3d specific logic into its own static function. 2012-10-10 10:05:56 +00:00
Ove Murberg Henriksen
495e3f3f36 Its silly to use "verify index" because it will add non existing and remove them afterwards. 2012-10-10 08:50:56 +00:00
Campbell Barton
7c351d3d09 fix error setting quadview when there is no camera in the scene, the view would glitch/jump when accessing afterwards. 2012-10-10 08:47:53 +00:00
Campbell Barton
33489b3b74 fix for crash when entering fly mode in a camera view that has no camera (rare but possible situation). 2012-10-10 08:46:52 +00:00
Joshua Leung
cc8c0d89e3 Graph Editor: Added a filtering option for Drivers mode to only show F-Curves
with errors

This filtering option is useful when rigging and you want to figure out if any
of your drivers are not functioning, and/or which one(s) are not, so that you
can go through fixing them. It saves you from having to check on each one
individually, or going into the console to try to infer which ones are not
working.
2012-10-10 08:46:07 +00:00
Ove Murberg Henriksen
89969a07f0 Changing clear weight code from "assigning 0" to "removing".
Its less efficient but better practice.
+ Some style clean.
2012-10-10 08:29:13 +00:00
Sergey Sharybin
cf3a5d94f0 Fix #32780: Maya keymap selection issues
Maya keymap used LMB press to select object and also used tweak event
of LMB for border select. This lead to selecting object under the cursor
before border select could start.

This could be pain when working on huge scenes.

Solved by switching selection from LMB press to release.
2012-10-10 08:07:28 +00:00
Gaia Clary
3606cd5216 Cosmetic: Changed label of the 'Install Addon...' Button to 'Install from File...' 2012-10-10 08:04:04 +00:00
Sergey Sharybin
9829ba31b9 Color Management: fixed color management-less texture rendering
There was a missing check for whether color management enabled or not when
converting byte textures to linear space.

This commit also fixes wrong texture preview rendering, which was applying
sRGB transform twice, making procedural textures bright. This will make
float textures being previewed dark (in a linear space) but that's how it
used to behave in pre-OCIO color management.
2012-10-10 05:56:49 +00:00
Campbell Barton
7dc19e0bc7 use __restrict for string functions args so the compiler can assume they dont overlap.
also avoid comparing int/size_t in for loops.
2012-10-10 04:47:53 +00:00
Campbell Barton
a17e1eea23 refactor foreachScreen functions for clipping, now the projection clipping flag is passed down directly rather then converting the enum into a flag, also fix own recent crash lasso seleting in object mode with pose objects. 2012-10-10 04:03:22 +00:00
Campbell Barton
22bf1e13db code cleanup: split foreach object data iterator functions out of drawobject.c (since they are used for selection too), into their own file: object_iterators.c 2012-10-10 03:13:02 +00:00
Campbell Barton
b3bf6b527b object center selection now uses floats, also fix own error in circle selection in recent refactor. 2012-10-10 01:54:02 +00:00
Campbell Barton
c3ca19800c refactor screen foreach functions to accept float[2] arguments rather then int pairs.
overall means less converting between float and int (and short in some cases).
2012-10-10 01:22:19 +00:00
Campbell Barton
d81d75b20d transfer weight's now operates on selected vertices (when vertex select is enabled). 2012-10-09 22:55:05 +00:00
Antony Riakiotakis
afa9eff3a5 code cleanup:
Move smart stitch drawing code inside a draw callback and use
ED_region_draw_cb_activate instead of explicitly checking for this
specific operator in the main uv drawing function.
2012-10-09 18:56:02 +00:00
Brecht Van Lommel
94f869a256 Cycles: camera motion blur enabled.
Still more work needed to get object motion blur ready.
2012-10-09 18:37:14 +00:00
Lukas Toenne
2a3c65169f Generalization of node dependency sorting, avoid using the sock->link pointer. This pointer only works for sockets that follow the standard 1-to-n connectivity (an output can be linked to multiple inputs, an input can only have one connection). Future node trees may implement 1-to-1 or n-to-1 linking. 2012-10-09 17:30:33 +00:00
Sergey Sharybin
08fc8c3561 Fixed wrong preset settings for motion tracking 2012-10-09 16:29:27 +00:00
Brecht Van Lommel
5f52285a01 Fix cycles task manager calling pthread_join() twice. I haven't seen any bugs
from this but best to fix anyway as it causes undefined behavior. Pointed out
on irc by dslammu, thanks!
2012-10-09 14:28:29 +00:00
Campbell Barton
97d4fb4161 code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo too. 2012-10-09 13:36:42 +00:00
Daniel Genrich
a580c891a7 Bugfix [#32703] elbeem's isSimworldOk() will never return FALSE
Fixed as suggested by Campbell, thank you!
2012-10-09 13:09:03 +00:00
Daniel Genrich
f92305fcb4 Bugfix [#32677] Cloth Pinning Does Not Obey Weight Map
Problem occured when having more than one weight map available.
2012-10-09 12:59:20 +00:00
Campbell Barton
35504d627b style cleanup: also made functions static 2012-10-09 12:41:37 +00:00
Ove Murberg Henriksen
cb42de588d Adding weightpaint transfer tool.
From: https://svn.blender.org/svnroot/bf-blender/branches/meshdata_transfer

Bachelor project at Narvik university collage (Norway).
By Ove M Henriksen (Cyborgmuppet)
 
Thesis will be published at Cyborgmuppets blender page.

Thanks for letting me participate!
2012-10-09 12:25:10 +00:00
Sergey Sharybin
affb060c20 Revert part of 51209 -- MOUSEZOOM inversion should be done in lots of other
places as well, but it's quite large change to be done before 'a' release.

For now ignore zoom inverse for 2d view to keep things consistent,
would be re-implemented for all areas after this.
2012-10-09 11:38:42 +00:00
Sergey Sharybin
4550864f07 Fix #32824: Color management configuration check was missed on file link/append 2012-10-09 11:31:25 +00:00
Ove Murberg Henriksen
ec689d650d Fix based on code review Issue 6347064 2012-10-09 11:29:29 +00:00
Campbell Barton
8730b390fb patch [#31919] limit the number of bone deform weights per vertex. Many game engines require a limit of 4.
from Kesten Broughton (kestion)


Usage: In weight paint mode, select the mesh to have its weights culled. Click on "Limit Weights" button. A sub-panel will appear "Limit Number of Vertex Weights" with a slider field "Limit" which you can set to the appropriate level. The default level is 4, and it gets executed upon pressing "Limit Weights" so you will need to do an "undo" if your max bone limit is above 4. The checkbox "All Deform Weights" will consider all vertex weights, not just bone deform weights.
2012-10-09 10:56:35 +00:00
Ove Murberg Henriksen
7247af6af5 svn merge ^/trunk/blender -r48592:HEAD 2012-10-09 10:53:20 +00:00
Joshua Leung
27aa05ec36 Autokey warning - trying with a slight "calmer" color
Now it uses the same color used for indicating keyframes instead of using
"error" indications.
2012-10-09 10:41:51 +00:00
Joshua Leung
fca582a2da Autokey warning - Only show for the active region
In response to some of the feedback, I've taken a second look at the situation
when multiple views are open, and indeed in that situation having it display in
every region and blinking was quite overwhelming (admittedly, I've mainly been
testing on single-view setups). Now it only shows for the region that was used
for initiating the transform.
2012-10-09 10:36:07 +00:00
Sergey Sharybin
6712e74282 Motion Tracking; expose View All and Center to Current Frame to View menu of graph view 2012-10-09 10:33:24 +00:00
Sergey Sharybin
33f35647e9 Motion Tracking: move keyframe settings to per-tracking object settings 2012-10-09 10:33:18 +00:00