Commit Graph

16327 Commits

Author SHA1 Message Date
Nathan Letwory
6dc63e054f 2.5 / Nodes
* XKey for deleting selected nodes.
2009-01-12 00:14:37 +00:00
Nathan Letwory
85c4e8fd2a 2.5 / Nodes
* add nodes through header menu (no way to link them yet, though ;)
  Note: the adding needs to be properly operatorfied still.
2009-01-12 00:00:59 +00:00
Nathan Letwory
ab33f8f0c0 2.5
* when reading an old .blend 2.5 crashed on creating input node menu. type->name is for some reason NULL, so add simple check to prevent from happening again.
2009-01-11 23:48:53 +00:00
Nicholas Bishop
e278b92f5d Fixed an apparent typo, was checking for vertex paint twice. 2009-01-11 21:42:39 +00:00
Ton Roosendaal
87d5d0aa10 2.5
Testing commit; this puts back support for swap-exchange graphics
cards, which I had hoped to have faded out... but it appears it
still does it for intel and some atis.

This only swap-exchanges properly for areas/regions, not for
menus or the 'action zone triange'. Let's see if it works!

You enable it with starting with commandline option -E
2009-01-11 18:35:16 +00:00
Martin Poirier
fd4c399a87 2.5
Use context to get selected objects for transform
2009-01-11 18:27:41 +00:00
Brecht Van Lommel
7cd4e2781a RNA
* Finished DNA_lamp_types.h, DNA_world_types.h and DNA_sound_types.h.
* Renamed "parent" struct property to "nested", and also remaining "from"
  usage to "base".
* Added a NEVER_NULL subtype for pointers and use it for all properties
  that apply.
* Make sure all structs have a description, and fix any other DOC_BROKEN
  descriptions, also many other naming consistency improvements.
2009-01-10 22:57:33 +00:00
Martin Poirier
6ab86a7572 2.5
Transform operator replay support for constraints.

Code isn't nice, will have to split some properties to separate what's part of the "saved data" from operator arguments.
2009-01-10 19:45:48 +00:00
Ton Roosendaal
1beef956ca 2.5
Instead of many commits, here 1!

- Constraint edit code back
- Removed XXX stubs for constraints
  (make parent follow path works)
- Removed XXX stubs for armature
  (make parent deform, do center, etc works)
- Found a bad uninitialized global Scene * in code, especially
  in kernel it wreaked havoc.
- added missing include in blenkernel/brush.c
- fixed Nicholas' fix for editmode subsurf crash
  (It needed to check for editmode)
2009-01-10 19:34:23 +00:00
Martin Poirier
3c2b772a23 2.5
Transform draw callback: constraints, snapping, prop circle
2009-01-10 18:33:16 +00:00
Ton Roosendaal
c6ed4b0c20 2.5
Bugfix; 64 bits alignment error in vpaint. tsk to me!
2009-01-10 17:38:29 +00:00
Ton Roosendaal
619e5423fb 2.5
Removed another bad global "editbutvweight", a value from buttons
used to paint weights with, or to set weights. Is now part of
weightpaint struct in scene.
2009-01-10 17:20:34 +00:00
Ton Roosendaal
446933c73f 2.5
Added custom data pointer to custom region_draw_cb
Also removed the test with green rect.
2009-01-10 16:49:22 +00:00
Martin Poirier
f26d9b8771 2.5
rename transform mode enum to something proper
2009-01-10 16:46:29 +00:00
Ton Roosendaal
dd97c08006 2.5
- Weightpaint back (CTRL+TAB or menu)
  Also weightpaint is sortof non-modal, allowing to use all existing
  hotkeys while in paint mode. Only leftmouse is overridden.
- Made vpaint and wpaint entirely local, stored in scene (and saved!)
- Small bugfix (also in 2.48): on weightpaint mode, all armature objects
  in 3d window were drawing as active poses. Now only the armature 
  deformer is.

Nice point for the UI agenda: are paint modes on ACTION mouse? Only then
you can combine it with SELECT mouse...
2009-01-10 14:19:14 +00:00
Ton Roosendaal
a7932f7452 2.5
Popup menus were tagged with wrong direction, so arrow keys or
scrollwheel didn't work.
2009-01-10 14:03:00 +00:00
Campbell Barton
9f0afbe804 added more parent properties for grouped rna stricts 2009-01-10 03:44:02 +00:00
Martin Poirier
9f742a0ba1 Don't change point type on overdrawn when there's only one. 2009-01-09 22:13:59 +00:00
Martin Poirier
07599ab3b2 limit overdraw to at least start or end near another stroke (otherwise, all strokes that crossed others replace them entirely). 2009-01-09 20:50:13 +00:00
Martin Poirier
7e76ce5d67 missing test for start of line caused crashes. 2009-01-09 20:35:37 +00:00
Martin Poirier
f1c4b4e7c5 Last version of overdraw didn't work great with polylines. Fix this and misc wrong initial values. 2009-01-09 19:25:10 +00:00
Campbell Barton
e60be63d23 added rna property "parent" so nested RNA structs can access their parent RNA struct
This is used for generating docs so a nested RNA struct such as MaterialRaytraceTransparency are listed under Material rather then in the global struct list)
These RNA structs are used for grouping properties and don't correspond to a C structure.
2009-01-09 16:08:47 +00:00
Ton Roosendaal
2fe5005bbb 2.5
New: Custom region draw callbacks.

For Martin: an example is now in space_view3d/view3d_edit.c
On middlemouse rotate view, it draws a small square in center.

It works likes this:

#include "ED_space_api.h"

handle= ED_region_draw_cb_activate(region->type, drawfunc, type)

and to stop it:

ED_region_draw_cb_exit(region->type, handle)

drawfunc is of type (const bContext *C, ARegion *ar)
currently it gets called only as type REGION_DRAW_POST, later we
can add more (PRE, POST_XRAY, POST_2D, etc).

For correct usage, these calls should return leaving view transform
unaltered.
2009-01-09 15:04:52 +00:00
Ton Roosendaal
c7fa55eebd 2.5
Vertex Paint back!

Added WM level "paint cursor" system, which manages a custom painting
cursor for tools or modes. 

- Activate it with WM_paint_cursor_activate(). That function wants two
  callbacks, a poll(C) to check whether there's a cursor in given context
  and ARegion, and a draw(C, x, y) which gets called when appropriate.
- While paintcursor is active, the WM handles necessary redrawing events
  for all regions, also to nicely clear the cursor on region exit.
- WM_paint_cursor_activate returns a handle, which you have to use to
  end the paint cursor. This handle also means you can register as many
  custom cursors as you want.

At the moment, vertex paint mode registers only a mousemove handler,
all other events are still normally handled. This is stuff for the 
future todo.
2009-01-09 13:55:45 +00:00
Joshua Leung
a93e253103 2.5 - IPO Editor
Porting relevant drawing code over from AnimSys2. It is currently not hooked up to anything else yet, so don't expect any curves to draw for a while. I'll need this for validating that my recorded animation system will work. ;)
2009-01-09 06:25:14 +00:00
Nicholas Bishop
50428d3a2f Removed more bad function calls in sculpt. 2009-01-09 05:33:28 +00:00
Nicholas Bishop
89ac0d91ae Cleaned up some missing functions in sculpt. 2009-01-09 05:24:11 +00:00
Nicholas Bishop
690c60f9fc More sculpt cleanup, removed sculpt_data and sculpt_session functions,
both of which used G(lobal)
2009-01-09 00:38:48 +00:00
Matt Ebb
0572f1a5f6 * fixed an incredibly silly typo-bug in light cache 2009-01-08 22:49:03 +00:00
Andrea Weikert
879aa81743 2.5 filebrowser
cleanup of space initialisation
fix for filebrowser opening with wrong parameters from window pupmenu after having been opened with F1.
2009-01-08 18:47:16 +00:00
Martin Poirier
133ddcff04 display overdrawn stroke in gray, to easily see what is being replaced. 2009-01-08 18:23:48 +00:00
Martin Poirier
a8f8bf1dc5 2.5
Transform editbones
2009-01-08 17:12:50 +00:00
Martin Poirier
a6c0b968ba 2.5
Crash when loading certain files with armature. Use scene from context instead of local var (which can be null).
2009-01-08 16:52:30 +00:00
Brecht Van Lommel
b5fcf3daff RNA: don't pass RNA type in RNA_id_pointer_create, can be found automatically. 2009-01-08 15:33:34 +00:00
Brecht Van Lommel
8140c76ac6 RNA: fix crash in python code, forgot to update this part in a previous commit. 2009-01-08 15:29:09 +00:00
Brecht Van Lommel
bebe874a5b RNA
* The generated code is now split into multiple files instead
  of a single big one. Scons, make and cmake are updated to
  deal with this.
2009-01-08 13:57:29 +00:00
Brecht Van Lommel
b08f15aa08 2.5: make and cmake fixes for recent changes. 2009-01-08 13:54:39 +00:00
Joshua Leung
8e095b0e64 RNA - Action Wrapping
Removed flags used for Action Editor from wrapping for Action. These do not belong here!
2009-01-08 11:14:58 +00:00
Michael Fox
b2eb7f3664 2.5
******
- Ported set/clear slow parents
	- currently there is no keymap entries

- removed some unused functions and some tidying up
2009-01-08 02:50:37 +00:00
Martin Poirier
c6b6910c16 2.5
Fix compile errors
Remove stubs that duplicate code and set armature lib priority correctly (needs to link with mesh)
2009-01-08 00:24:59 +00:00
Martin Poirier
1240b0272d adjust strokes by redrawing over them
(has to be turned on in the panel because it can give unexpected results sometimes right now)

http://vimeo.com/2753749

http://blenderartists.org/~theeth/bf/etch-a-ton/adjust.ogv
2009-01-07 21:46:10 +00:00
Brecht Van Lommel
ff1db49e34 RNA
* DNA_userdef_types.h, done. Patch by Nathaniel Garbutt, thanks!
2009-01-07 21:05:51 +00:00
Nathan Letwory
bd456965b9 2.5
- make sure source compiles (redefinition of functions)
2009-01-07 20:40:27 +00:00
Ton Roosendaal
e4ce05dda7 2.5
Two more files, vpaint.c and editdeform.c
No functionality working related to this yet, tomorrow!

(Added editdeform.c in mesh after all, it's doing hardly no lattice
 stuff, and it seems out of place in anim_api)
2009-01-07 19:23:22 +00:00
Nicholas Bishop
1bb2b174cb Fixed subsurf crash reported by mfoxdogg, was caused by not using an
editmesh for derivedmeshes when in editmode.
2009-01-07 18:03:12 +00:00
Ton Roosendaal
389dc100cc 2.5
More files back in the 2.5 repo:
(Note, boolean stuff moved to blenkernel)
2009-01-07 17:25:17 +00:00
Martin Poirier
6bb75d2d19 2.5
Add notifiers to transform to insure all windows of the correct type are redrawn.
2009-01-07 16:52:18 +00:00
Martin Poirier
78e2c81153 2.5
Add missing notifiers to node select, for proper redraw with multiple node windows.
2009-01-07 16:49:11 +00:00
Ton Roosendaal
637ffd1dfb 2.5
More globals discovered; lattice deform stored static
deform array and a matrix. Tsk!
2009-01-07 16:05:55 +00:00
Nicholas Bishop
fd969911c5 Fixed cmake for pose rna 2009-01-07 15:04:13 +00:00