Commit Graph

15385 Commits

Author SHA1 Message Date
Joilnen Leite
b3d8cbd113 fix from sirdude i patched and fixed my linkage erros in linux 2009-01-13 13:13:04 +00:00
Ton Roosendaal
25483d10bd 2.5
Added poselib.c back, non functional entirely still.
2009-01-13 12:32:01 +00:00
Ton Roosendaal
d263911eac 2.5
Renamed sequencer file to conform editor specs.
Couldn't yesterday, svn refused for some reason :)
2009-01-13 11:41:52 +00:00
Michael Fox
806bc87a97 2.5
******
small commit
	- ported Select Linked (shift-L)
	- it does have IPO for now
2009-01-13 09:48:25 +00:00
Michael Fox
4e1ad1aaaa 2.5
*******

- Ported  ObData to center, center new and centur cursor
	- its currently 1 operator
	- no warning or error popups until its figured out how best to do so
	- possibly full of ugly code and things done worng way, had a hard time trying to understand this code

- some more house cleaning and removal of unused functions
2009-01-13 05:31:33 +00:00
Shaul Kedem
d8a269541f edit mesh operators for edit mesh view 2009-01-13 02:09:58 +00:00
Joshua Leung
ae25863d6c 2.5
* Tweaked a few incorrect comments in Constraints code
* Made Sequencer use View2D system correctly (only looked at the 'time-grid' thing so far).
2009-01-12 22:54:30 +00:00
Ton Roosendaal
ab39a3f2b7 Added pthread include for windows scons 2009-01-12 19:14:33 +00:00
Ton Roosendaal
03fc5696dc 2.5
12k lines of sequencer back! Only seqaudio.c skipped for now.
Notes:

- it only draws now, nothing refreshes or edits.
- fixed bug in view2d.c with vertical grid step being 0.0f
- render code and fileselect code is #ifdeffed out
- sequence evaluation code moved to blenkernel, so it can
  be used for render without bad level calls

General note; sequencer code is very untidy, mixing styles too
much. Tried to clean it some, but it would be nice if formatting
is kept consistant from now on.
2009-01-12 19:02:08 +00:00
Nathan Letwory
ca45efba28 2.5 / SCons / Nodes
* quick "typo" fix before anybody notices.
2009-01-12 18:07:55 +00:00
Nathan Letwory
4cc7971c15 2.5 / SCons
- make sure WITH_BF_PYTHON=False is respected.
2009-01-12 16:55:46 +00:00
Nathan Letwory
415b9d2e84 2.5 / Nodes / SCons(mingw)
* chop the nodes library into smaller parts
  - the addition of texture tree pushed the limits for scons/mingw
  - This should still have everything compile nicely, but please,
    maintainers of other build systems should check. The only interesting
    change for them is the difference in headers.
2009-01-12 15:25:17 +00:00
Ton Roosendaal
1521260229 2.5
Quick fix; redraw 3d view when using header buttons
2009-01-12 09:04:53 +00:00
Nathan Letwory
99d10b7f76 2.5 / Nodes
* [Use nodes] added. For future improvements: a panel which enumerates
  materials, textures and scenes for selection and editing in the opened
  node-editor without having to set it in Buttons (or 'global' scene).
2009-01-12 01:02:52 +00:00
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
Jens Ole Wund
a1912243b6 this pretty ugly hand coded
just to prevent this slips on first 'release'
2009-01-11 22:42:21 +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
Andrea Weikert
f4c2a9fa7c 2.5 MSVC9 projectfiles
small update: 
* added editors/space_ipo(ipo_draw.c
* added editors/object/editconstraint.c
2009-01-11 15:15:15 +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
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
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
Andrea Weikert
38e263171e 2.5 MSVC9 projectfiles
* update of RNA project after reorganisation
* added editors/space_view3d/vpaint.c and editors/mesh/editdeforn.c to projectfiles
2009-01-08 18:20:47 +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