Commit Graph

19324 Commits

Author SHA1 Message Date
Brecht Van Lommel
01ef3301a8 Fix drawing of armature bone axes, these were not showing labels.
Also unified drawing code for object & particle text, was almost
the same function duplicated, and now also used for bones.
2009-09-19 18:45:31 +00:00
Brecht Van Lommel
fcbfd29796 Fix combined pose + weight paint mode, was using wrong object
in a few places, missing some checks.
2009-09-19 15:48:47 +00:00
Brecht Van Lommel
d25ab89ac0 RNA: for last commit, fix paths_location and paths_type enums,
these had wrong DNA variable name already before this change.
2009-09-19 14:16:02 +00:00
William Reynish
645ca520a3 Armature UI
Added the new pose tools in the toolbar.
Changed a few armature values to enums. 

Brecht: The Heads/Tails enum seems to also enable armature.draw_axis, and the paths_type enum affects armature.draw_names
2009-09-19 13:50:24 +00:00
Joshua Leung
7eb436a6b8 2.5 - More Animation Bugfixes
* Updating Preview Range settings results in correct updates for Animation Editors

* Compositing nodes now correctly animate when the values were set by IKEY/RMB on suitable node parameters. Beware that these nodes are not relinkable node-trees, hence the standard code not working.

* Ctrl-P to parent objects to bones now works in Pose Mode too. I needed to add a special keymap entry for this, though I thought this would have been better to be automatically inherited/present from Object keymap already?
* Ctrl-P -> Parent to Bone option now works correctly again. 1.5 lines of code missing here...

* Breakdowns tool now shows custom cursor during 'modal' phase so that it's not that confusing what's going on.
2009-09-19 12:36:22 +00:00
Joshua Leung
9710673192 2.5 - Animation Bugfixes:
* Breakdown tool for Poses (Shift-E in PoseMode) now works. Now this works as a modal operator when invoked, with the horizontal movement of the mouse (left to right) corresponding the placement of the breakdown relative to the endpoint keyframes.

* Moving bones between armature layers in Edit Mode didn't work (wrong variable name used)
* Fixed several notifier-related bugs regarding editing armature settings and the 3d-view not refreshing
* Duplicating bones preserves the rotation mode

* Animation Data for Nodes is now show in Datablocks viewer (i.e. AnimData for NodeTrees has now been wrapped)
2009-09-19 11:59:23 +00:00
Joseph Eagar
1ec44f3bb2 compile fix 2009-09-19 01:05:16 +00:00
Joshua Leung
8ab24bb2c2 2.5 - Pose Enhancement Tools
This commit restores the 'Relax Pose' tool, and also introduces two others: 'Push Pose' and 'Pose Breakdowner'.
Be aware that this commit is just the initial starting point, with some parts yet to be done.

A short description of these tools follows:
* Relax Pose (Alt-E) - makes the current pose more like the poses on either side of it
* Push Pose (Ctrl-E) - exaggerates the current pose
* Breakdowner (Shift-E)[not working yet] - when this works, it will allow for interactive selection of a good in-between pose to act as a breakdown. 

Todo's:
* Connect up the 'percentage' slider in the operator settings to allow these effects to be dialed in/out, exaggerating/relaxing/moveing-between-keyframes by varying degrees until the desired effect is reached.
* Allow these effects to be interactively dialed in/out. The idea is to use the mouse to interactively set the percentage slider value initially, then use the percentage slider to tweak later.
* Figure out why breakdown breaks down
2009-09-19 00:18:42 +00:00
Guillermo S. Romero
ad07133e53 Add path to find SYS_System.h (which is only included with gameengine).
Reported by Jasper Mine.

Fixed comment, it was away from the directive it explained.
2009-09-18 22:12:29 +00:00
Thomas Dinges
6114de09b5 2.5 Nodes:
More Nodes are wrapped to the layout engine. +a bit code cleanup.

Brecht: please check on greying out, it doesn't look correct. :)
2009-09-18 21:04:54 +00:00
Campbell Barton
c388244be4 Move some static math functions out of paint_image.c into arithb.c
* VecLerp3f and Vec2Lerp3f - interpolate 3 2d/3d vectors from 3 weights
* AngleToLength(angle) - useful for making even width shell/walls based on the angles of the surrounding geometry from each point. (same method used in 2.4x python solidify script).

also quiet some warnings.
2009-09-18 16:39:45 +00:00
Brecht Van Lommel
9787a2e55a UI: fix some python errors in sculpt/paint modes when there is no brush. 2009-09-18 15:52:28 +00:00
Brecht Van Lommel
9435727712 Handlers/keymaps, some tweaks for previous commits:
* Screen keymap is now split up in two, some of the area/region
  manipulation operators here need to be handled before others.
* Moved paint/sculpt/sketch out of the 3d view keymap, these were
  there as a workaround, now with keymap poll no longer needed.
* Also fixes #19297, 3d cursor moves when combing in particle mode.
2009-09-18 15:48:49 +00:00
Campbell Barton
474378a0e8 VecAngle3_2D, VecAngle2 and VecAngle3 returned degrees, in arithb.c degrees are most common.
- These now return radians
- added macro RAD2DEG(rad)
- renamed VecAngle3_2D to Vec2Angle3 since Vec2* is used in arithb.c for 2D vector functions.
2009-09-18 15:47:00 +00:00
Brecht Van Lommel
0f25d9bb54 Fix #19381: Switching from sculpt to object mode does not update toolbar. 2009-09-18 13:17:33 +00:00
Brecht Van Lommel
c67db42e3e Fix #19383: crash pressing image open in texture buttons. 2009-09-18 13:13:28 +00:00
Brecht Van Lommel
26836bf44f 2.5: Python operators now have a working poll() function,
solved by wrapping all polling in WM_operator_poll and
adding a special callback for python.
2009-09-18 13:02:20 +00:00
Brecht Van Lommel
854ea35a24 2.5: Handlers are now evaluated in a different order, fixing some
issues like Shift+R (repeat last) not giving capital R in the text
editor. There is also new modal handler list at the window level,
and the API call will always add it to that one now, since modal
handlers were not used in other levels.

The order used to be:
* window modal + keymap
* area modal + keymap
* region modal + keymap

Now it is:
* window modal
* region keymap
* area keymap
* window keymap
2009-09-18 12:43:36 +00:00
Campbell Barton
ab518939b5 - jitter for painting (image and projection painting, others can be added)
- remove falloff setting now the curve is used.
- bugfix for airbrush & tablet, with no movement it would assume 1.0 pressure.
- rna, use the use_* prefix for brush options.
2009-09-18 11:25:52 +00:00
William Reynish
d56e23afc0 Changed a few mutually exclusive options in preferences to radio buttons (enums) 2009-09-18 07:44:52 +00:00
Campbell Barton
2a21669e65 curve could return values lower then zero, making a brush add and subtract the color in different parts. (cool but not useful!) 2009-09-18 04:07:41 +00:00
Matt Ebb
292e695a35 * fix for previous commit, didn't take brush strength into account 2009-09-18 03:47:17 +00:00
Campbell Barton
fd6654d4ef remove brush_sample_falloff, #if 0, unused function is_tablet_cursor 2009-09-18 03:41:37 +00:00
Martin Poirier
985031c235 netrender: only one log file for each chunk 2009-09-18 03:29:50 +00:00
Matt Ebb
bf6f23ff5f * Added notifiers/redraws for brush edits in 3d view and image editor (so using radial control updates tool properties)
* Changed the non-projection paint code to use the brush falloff curve, rather than a predefined falloff. This makes non-projection painting in the 3d view, and image editor painting much more consistent with other brush usage.
2009-09-18 03:11:17 +00:00
Campbell Barton
a393a9c6f0 same as r23322 in 2.4x
--- 2.4x log
use functions to detect stylus and eraser from the wine project, supposed to work with non-wacom tablets too (searches for wizardpen & acecad as well as 'stylus').
2.4x did an exact check on the name, 2.5 does a case insensitive search on the type.

This does a case insensitive check on both the name and type.

close the devices on exit too.
2009-09-18 02:38:38 +00:00
Matt Ebb
b75d2c56c8 * Made image editor paint use predefined left/right mouse buttons rather than action/select, consistent with 3d view painting (and better for tablets!)
* Fixed a small bug in project paint tool ui
2009-09-18 02:19:27 +00:00
Janne Karhu
08e2da590f Particles cleanup, optimizations and some small new stuff.
New stuff
- Bending springs for hair dynamics.

Code cleanup & optimization
- Disabled reactor particles temporarily for cleanup, it's a clumsy system that will be replaced with something better.
- Removed child seams, something better will come here too :)
- Normal particle drawing data is now saved between redraws if the particles don't move between redraws.
	* For example rotating the 3d view is now realtime even with 1M particles.
- Many random values for particles now come from a lookup table making things much faster.
- Most accessed small point cache functions are now much faster as macros.
- Lot's of general code cleanup.
- Nothing big should have changed so if something doesn't work like it used to it's probably just a typo somewhere :)
2009-09-17 22:00:49 +00:00
Brecht Van Lommel
69e919530e Keymaps now have a poll() function, rather than adding/removing
their handlers based on notifiers, which is simpler and more
reliable.

This fixes for example editmode or uv edit keymaps not working
when creating a new 3dview or image space.
2009-09-17 21:36:02 +00:00
Martin Poirier
b572ae2a8b netrender:
Disable windows' blocking crash reports in child process. (windows only)
Get server port as well as ip address from master broadcast (broadcast is on a fixed port).
2009-09-17 18:40:37 +00:00
William Reynish
bf34328634 Forgot to delete unused code. 2009-09-17 17:44:54 +00:00
William Reynish
a133907c92 -Shuffled some user prefs around to make better use of the available space in Preferences.
-Temporarily disabled the Themes tab until we figure out how to manage themes properly.
2009-09-17 17:42:08 +00:00
Thomas Dinges
a08b16436d 2.5: Adding a crop node caused crash, wrong layout deceleration was used. 2009-09-17 17:31:50 +00:00
William Reynish
613a034b45 -Added Loop Cut to toolbar
-Adjusted some UV Editor panels slightly
-Made a few nodes clearer. The Crop node was especially confusing.
2009-09-17 16:47:04 +00:00
Thomas Dinges
91e5ac872e Wrapped some more Nodes:
* Composite: Flip, Crop, Map UV, Lens Distortion.
2009-09-17 15:06:03 +00:00
Brecht Van Lommel
fbbda4c06e Warning fixes for blenkernel and editors.
Note sure what to do with this one, and personally think
we should avoid using macros for this kind of thing:

V_GROW(edges);
source/blender/editors/mesh/loopcut.c:232: warning: value computed is not used
2009-09-17 14:46:22 +00:00
Brecht Van Lommel
09652d8c05 Fix #19371: vertex group dropdown crash, own fault in commit yesterday. 2009-09-17 14:37:08 +00:00
Brecht Van Lommel
7783c286b9 UI: fix display of shape key list to show with no items,
list template should also accept None.
2009-09-17 14:35:08 +00:00
Benoit Bolsee
a911fd88af Update MSVC project files. 2009-09-17 11:17:49 +00:00
Joshua Leung
68f4465cdc 2.5 - Animation Utility Function
Added a utility function to check which transforms for an object or bone are animated, returning these as bitflags and/or optionally retrieving the relevant F-Curves too. Beware that this method may not be working correctly yet, but it shouldn't hurt anyone in the meantime :)

Also, split RNA-path building function up into a version which only creates the path up to the given struct, with the other parts being added later.
2009-09-17 10:14:56 +00:00
Campbell Barton
1934ee422a rna function api was overwriting useful errors with keyword errors.
fix some missing checks in the python interface.
2009-09-17 00:14:47 +00:00
Matt Ebb
4a15b40c37 * fix compilation on osx 2009-09-16 22:27:27 +00:00
Remigiusz Fiedler
591a30dab0 bugfix for LineIntersectLine()
- was imperfect calculation for points marking shortest distance for non-crossing lines in 3d
2009-09-16 22:12:23 +00:00
Thomas Dinges
90d8088e53 2.5:
Test Commit, converted Filter Composite Node to use layout engine. :)
Will do other Nodes in the next few days.
2009-09-16 20:07:05 +00:00
William Reynish
f26ac206c9 *Changed image field order property to enum, making it consistent with the corresponding render option
*Tiny edit to image panel.
2009-09-16 19:58:01 +00:00
Martin Poirier
6e4d4a8a12 fix bugs with file transfer 2009-09-16 19:47:58 +00:00
Brecht Van Lommel
b6c6610630 UI
* Removed some legacy code which is not needed anymore now.
* Move some test_*poin_but functions to logic space code,
  since that's the only place using it still.
* uiIconFromID now uses RNA info to lookup the icon, to avoid
  code duplication, and means it works for more ID types.
2009-09-16 19:36:17 +00:00
William Reynish
21e2f27532 Tiny fix for mistake in toolbar. 2009-09-16 19:27:23 +00:00
Brecht Van Lommel
f8abfce7ce Image Panels
* The image panels in the image editor and texture buttons
  should be more complete now, with working new/open,
  refreshes, and using the layout engine.
* Paint panels in image editor are now consistent with the
  ones in the 3d view toolbar.
* Curves panel also uses layout engine, and doesn't look
  squashed anymore.
2009-09-16 19:27:08 +00:00
Brecht Van Lommel
5129b08064 UI
* Node buttons can now use the layout engine. a few simple
  ones are converted. We'll keep this code in C for now,
  python wouldn't help much here.
* For node buttons not using the layout engine, manually
  computing the button height is not longer needed.
* Node inputs are still not RNA wrapped, would be good to
  have these available as well for keying, but makesrna does
  not have access to the bNodeTypes.
2009-09-16 18:59:13 +00:00