Commit Graph

22126 Commits

Author SHA1 Message Date
Matt Ebb
1d3186cbcf Durian request: Added 'Color Balance' node to compositor. uses Lift/Gamma/Gain
similar to sequence editor.

--> http://mke3.net/blender/devel/2.5/color_balance_node.jpg

Also added 0 key (zero key) shortcut when mouse is over a button, to reset it to its default value.
Same as the RMB menu ->Reset to Default, except for color wheels, it only resets the hue/sat/value
components that that widget affects.

Peter/Xavier: The existing color balance code can generate NaNs (fractional power of a negative),
which causes havoc along the image pipeline. I added a check in the node code to prevent this.

Still plenty of potential for lots of better colour correction tools in the compositor, just needs time...
2010-01-20 04:19:55 +00:00
Nicholas Bishop
8bcf66e1d1 CMake:
* Added -Wno-unknown-pragmas to the cflags, silences warnings when OpenMP is diabled.
2010-01-20 03:46:28 +00:00
Joshua Leung
26bc442881 Bugfix for Driver Evaluation:
* Current value for drivers didn't get stored, which meant that the debug value never got updated to reflect the current state.
* Min/Max variable types were not working
2010-01-20 00:54:06 +00:00
Joshua Leung
e80fe46d7d Bugfix #20738 - Mask modifier: Armature mode still shows "Vertex Group" as title. 2010-01-20 00:31:34 +00:00
Joshua Leung
a8855e2caf Drivers UI: Debug Info
Feature request for ZanQdo, which shows the intermediate values used in driver calculations (i.e. current value of driver, and current value of variables), allowing drivers expressions to be debugged. This is a per-driver setting...
2010-01-19 23:38:26 +00:00
Campbell Barton
ccb6e1904a patch from Bjørnar Hansen (anachron)
Multiple background images displaying each on a different axis.

Changes made from the original patch.
- Use an enum rather then multiple booleans.
- Reduced the space taken up by the user interface.
- Made the image template compact display not show fields & premul options.
- Added readfile.c lines so old blendfile images are loaded.
- Option to hide BGpic UI (like modifiers & constraints)
- Use the index rather then a bgpic from the context for the remove operator.

note: could be good to use 1 image for both left+right, for eg, but for this to work as intended we would need to add image flipping depending on the axis so left this commented out for now.
2010-01-19 22:44:43 +00:00
Joshua Leung
7165008b35 Motion Paths are now recalculated again after transforms (with autokeying and around-current frame displays enabled) 2010-01-19 21:44:22 +00:00
Campbell Barton
886a5bca08 set to python 3.1 in scons config. 2010-01-19 21:42:01 +00:00
Joshua Leung
a8a5defc0c Preview Range Tweak:
Made preview range be turned on/off using a proper flag instead of just relying on checking for start-frame = 0. It is no longer satisfactory to do that since we can have negative frame numbers, and also having it as a proper flag means that the range can be toggled on/off non-destructively.
2010-01-19 20:30:04 +00:00
Joshua Leung
2100412284 Small tweaks to 26108 - Graph Select Borderselect:
Campbell's fix was ok, but just added a few comments as to why the previous way didn't work.

Also, fixed the bug where borderselect would make all F-Curves selected regardless of whether any keyframes on those curves were selected.
2010-01-19 19:53:50 +00:00
Nathan Vegdahl
c54d54e8ae Rigify:
- Added two driven-shape-key rig types that create and drive shape keys on a mesh/meshes based on the distance or rotation difference between two bones.
- Fixed bug in finger curl rig type where secondary finger controls were not created.  Finger type can also now (optionally) have a hinge switch (useful when using it for wings).
- Changed the blending system in rigify_utils to use copy_transforms constraints instead of copy_loc+copy_rot.
- Finished the quadruped leg type.  Now has both ik and fk control and ik/fk switching.  Also uses a rotating bone to control the knee direction instead of a pole target (seems to work more consistently for quadruped setups).  There's still one annoying bug regarding foot roll, but it's not blocking.  I'll track it down later.
- Mouth rig now creates corrective shape keys on the face mesh for dealing with mouth corners when they spread open.
- Biped arm and leg types now cause mesh to scale when you scale the fk controls.
- Misc improvements to the rig types.
2010-01-19 19:07:09 +00:00
Nathan Vegdahl
40fb29862e Added eyeball and eyelid rig types to rigify.
(First commit!  Let's hope this works!)
2010-01-19 18:52:45 +00:00
Stefan Gartner
a22f240b59 Makefiles: renamed NAN_PCRE to BF_PCRE to keep consistent with other pcre related variables 2010-01-19 18:50:18 +00:00
Kent Mein
aab621eb43 added a missing include.
Kent
2010-01-19 18:09:14 +00:00
Campbell Barton
d77c51a476 bugfix [#20736] crash if lasso select while invisble object is selected
- also dont display empty menu's
2010-01-19 16:38:48 +00:00
Campbell Barton
9396bb2da9 - AIX ifdef's so windows works, cant test but this seems the most used define. might need to add to buildsystem config.
- transform default scale was too hight, calls to random were inconsistant. (fault of own modif's)
- cmake openal include was added twice on recent commit.
2010-01-19 15:57:02 +00:00
Thomas Dinges
4fe037f53f Windows Compile Fix. No need for strings.h on win32. 2010-01-19 15:46:07 +00:00
Brecht Van Lommel
7e9d9460c9 Added extra check & prints for multires data failing to write to
external file.
2010-01-19 15:15:48 +00:00
Campbell Barton
f75301939c Aligorith: please check. this was copied from mouse select. however BKE_nla_tweakedit_remap(adt, rectf.xmin, NLATIME_CONVERT_UNMAP) is running which looks like it should be doing the remapping. however both functions are needed for this to work.
Committing since Lee wants border select to work in the graph editor but feel free to revert.
2010-01-19 15:12:14 +00:00
Campbell Barton
abb5214a8f removed 3D view listener for changing the background image frame.
do this on drawing instead since SCREEN_OT_animation_step isnt calling the notifier (assume this is to be more efficient?). this isnt slow so is ok to do on drawing.

rename BKE_image_user_calc_imanr to BKE_image_user_calc_frame
2010-01-19 14:04:33 +00:00
Campbell Barton
05ce322aad set teh active face on entering editmode to the last selected, visible face (if unset) 2010-01-19 12:24:28 +00:00
Joshua Leung
bfe5482169 NLA Bugfix for Lee: Changing action extents doesn't update the strip lengths too 2010-01-19 11:43:29 +00:00
Joshua Leung
7759fc2983 Motion Paths - (Part 3) Operators, Drawing, and Fixes
This commit makes the new-style Motion Paths work for Objects and Bones. Motion Paths can either be added for Objects (Object buttons) or for Selected Bones in PoseMode (Armature Buttons), and/or removed from these panels too.

Changes:
* Changed the way the baking code worked, since it was better to be able to bake a bunch of objects at once, instead of doing it per object
* Fixed a variety of bugs regarding initialising defaults and reading old files
* Added operators for Objects (like for bones), and replaced the existing code for bones.
* Fixed bug with baking code that was causing it to bake the wrong ranges

Todos:
* Frame number drawing is currently messed up, since the "cached" text drawing takes into account the object transforms.
* The new MotionPath panels currently appear as the first panels in the respective contexts, probably due to the order in which the files are included. This needs some fixing, though not sure what the best way is yet.
2010-01-19 11:31:49 +00:00
Campbell Barton
ed578c27c8 patch [#20690] Cut Linking for Logic Bricks
from Dalai Felinto (dfelinto)

cutting kinks now works the same as in the node editor.
2010-01-19 11:24:42 +00:00
Campbell Barton
59bcf6cf4f [#20722] Ignore non-existent files from .Blog
from Sergey Sharybin (nazgul) 
- added own minor changes.
2010-01-19 11:11:56 +00:00
Campbell Barton
530b8bba42 patch [#20612] Making Blender compile on AIX 4.3.3
from Philipp Gühring (sourcerer)
2010-01-19 10:57:59 +00:00
Campbell Barton
e6697dfe4a setting the timeline endframe didnt work if the preview range was used. 2010-01-19 10:36:33 +00:00
Campbell Barton
c02b26e463 convert rotations into radians (not scale) 2010-01-19 09:51:09 +00:00
Campbell Barton
8ae76d7249 pep8 compliance for Randomize objects loc/rot/scale.
- scale min -1 to 1 rather then -100 to 100
- default precision for float props to 2.
2010-01-19 09:36:40 +00:00
Campbell Barton
98312235b0 own error from changes to this script.
need to call random.uniform() even if its not used to give pradictable randomization.
2010-01-19 09:24:39 +00:00
Matt Ebb
5b78e80fef Fix [#20067] Blender 2.5.0 Alpha0 - Duplicating Window 2010-01-19 06:49:50 +00:00
Matt Ebb
1d83239118 Fix [#20730] Auto Auto-depth with scroll wheel
Campbell, as far as I can see, this should be fine, but you might want to doublecheck.
2010-01-19 04:14:57 +00:00
Matt Ebb
ba36b848eb Added new macro "file.select_execute", by default mapped to LMB doubleclick in file selector.
This selects+opens the file under the mouse pointer, can be customised.

This somewhat fixes [#20727] MMB don't load .blend from the file browser
2010-01-19 03:59:05 +00:00
Matt Ebb
b34a0fd18a Partial fix for issues in [#20564] Color Management/Linear Workflow not taken into
account in Preview Render anymore?
2010-01-19 02:47:44 +00:00
Matt Ebb
2fa3baf30b * Make image Histogram only update when region is visible
* Clean up some remaining code
2010-01-19 02:26:36 +00:00
Matt Ebb
b079dcc140 Fix compile on msvc (inline) 2010-01-19 02:15:37 +00:00
Matt Ebb
aab8196a1c Finished some work from the weekend to keep local tree clean..
* Added a generic 'histogram' ui control, currently available in new image editor 
'scopes' region (shortcut P). Shows the histogram of the currently viewed image.

It's a baby step in unifying the functionality and code from the sequence editor, 
so eventually we can migrate the sequence preview to the image editor too, 
like compositor.

Still a couple of rough edges to tweak, regarding when it updates. Also would 
be very nice to have this region as a partially transparent overlapping region...
2010-01-19 01:32:06 +00:00
Campbell Barton
849024df83 patch [#20724] Randomize Loc Rot Size py operator for B2.5
written from scratch by Daniel Salazar (zanqdo). added own modifications.

New property type
 bpy.props.FloatVectorProperty(), only difference with float is it takes a 'size' argument and optional 'default' sequence of floats.

moved bpy.props.* functions out of bpy_rna.c into their own C file.
2010-01-19 00:59:36 +00:00
Joshua Leung
56660fab4b Timeline: Keyframe Drawing for All Selected Objects
When 'Only Selected' is ON, or the Active Object is in PoseMode, only the keyframes for the active Object are drawn (*).

Otherwise, the keyframes for the scene (sequence+nodes+world), and the selected Objects (including the Active Object) are drawn.


(*) I've also made some changes here to try and get only the selected bones showing here, but some further changes are still needed for that to be able to work.

---

Also, fixed bug in makesrna caused by missing newlines for error prints. This resulted in all error-output from makesrna appearing on a single line.
2010-01-18 23:31:46 +00:00
Martin Poirier
b6421418e4 Fix input issue with Time Scale (center2d needs to be specially calculated for that transformation). 2010-01-18 22:21:32 +00:00
Joerg Mueller
cd068e5530 Removed workaround from weekend. See mailing list for details. 2010-01-18 20:11:31 +00:00
Campbell Barton
161ae41c6d load the user prefs before python so the python userdir is read. 2010-01-18 18:52:03 +00:00
Campbell Barton
20fb87ac32 cmake was missing openal include path 2010-01-18 17:14:54 +00:00
Campbell Barton
eedc3c09d1 append/prepend class methods for the header and panels (previously only worked for menus)
Example of adding a button to the view header;

 def draw_custom(self, context): self.layout.operator("some.operator")
 bpy.types.VIEW3D_HT_header.append(draw_custom)
2010-01-18 16:47:26 +00:00
Campbell Barton
13f28b6fa4 revert for last commit, this should fix the proplem properly.
- selected bones on hidden layers would be selected for weight painting (confusing to the user). use the 'active' bone instead.
- when no weight group was set, the index used for the bone group was off by 1.
2010-01-18 16:21:23 +00:00
Campbell Barton
8cf6b390e3 fix for weight painting bug, weight painting would fail when entering weight pait mode in some cases. 2010-01-18 15:33:43 +00:00
Campbell Barton
9ae90efc8e - opengl render anim exec function so python can render opengl animations without and have it block until its done.
- timeline rna camera access.
- new textblocks have tabs as spaces enabled by default since this is blenders default.
2010-01-18 14:40:06 +00:00
Damien Plisson
dc589a33dd OSX/scons : fix cross-build issue during linking phase with dynlibs 2010-01-18 14:08:40 +00:00
Campbell Barton
b9fd903e8e make the animation read error message say if the file wasnt found. 2010-01-18 11:46:19 +00:00
Campbell Barton
04230ae592 fix for movie files sequence strip names not working unless the first frame of the movie was shown. 2010-01-18 11:22:32 +00:00