Commit Graph

15405 Commits

Author SHA1 Message Date
Ton Roosendaal
30e851b8a5 2.5
A small round of warning cleanups; unused variables, missing
headers and some const types.
2009-01-14 16:37:52 +00:00
Ton Roosendaal
9aec7aaf6c 2.5
GPencil code back!

Joshua will probably take this further. I've added XXX notes
where fixes are required. Also note that ED_gpencil.h has
all old exports, which is probably not needed, most can go
to gpencil_intern.h

Also added Makefile fixes for sculpt
2009-01-14 16:13:50 +00:00
Nicholas Bishop
3e756ca0a6 Moved some more sculpt data into operator properties, also the test brush is now properly created so you can edit its state in the RNA viewer. Added an RNA property for the brush sculpt tool as well. 2009-01-14 15:29:29 +00:00
Ton Roosendaal
126b9ca1a6 2.5
Hrmf; sconscript apparently can't do emtpy dirs!
2009-01-14 13:18:10 +00:00
Ton Roosendaal
b4df27c50d 2.5
Still old editNurb here... last part
(I committed in parts, have gpencil restored here and can't 
commit that yet!)
2009-01-14 13:06:09 +00:00
Ton Roosendaal
3b56ee7880 2.5
Still old editNurb here...
2009-01-14 13:05:10 +00:00
Ton Roosendaal
efc4ccc974 2.5
Still some old editNurb here...
2009-01-14 13:04:48 +00:00
Ton Roosendaal
ea2d6fe0d0 2.5
Another one back: editcurve.c

- removed global editNurb everywhere
  (cu->editnurb now has listbase with edit data)
- also added 'active bpoint' and 'active nurb' in
  Curve struct
- editmode in/out works, mouse/border select works
2009-01-14 12:26:45 +00:00
Nicholas Bishop
07e85b265d Moved a couple more sculpt settings into operator properties, including shiftkey for flipping stroke direction in or out 2009-01-14 03:02:44 +00:00
Nicholas Bishop
9b1199d6a3 Noticed that sculpt was quite slow because of string lookups in RNA, so added a separate sculpt stroke cache for some values that usually aren't even changed except at stroke initialization. 2009-01-13 23:21:05 +00:00
Nathan Letwory
0162ded15a 2.5 / Keymap definition
* For some reason builds on Windows would crash when tabbing into edit mode with default .b.blend
  Problem is that it is not very clear why it happens. The debug trace I managed to get pointed at
  SCRIPT_OT_run_pyfile being run when pressing TAB.
  Changing the way how this quickhack for running scripts is added made the crash go away, but this
  points at a potential problem in the creation of keymaps. The original form is the plenty used:
  
  RNA_string_set(WM_keymap_add_item(keymap, "SCRIPT_OT_run_pyfile", PKEY, KM_PRESS, 0, 0)->ptr, "filename", "test.py");

  But changing that to:

  km = WM_keymap_add_item(keymap, "SCRIPT_OT_run_pyfile", PKEY, KM_PRESS, 0, 0);
  RNA_string_set(km->ptr, "filename", "test.py");

  Properly prevents the execution of the script operator. It looks like somewhere
  something goes wrong, but no idea what, yet. Probably a good thing to investigate now!
  Apparently this doesn't happen on Linux (and probably not on OSX either).
2009-01-13 21:18:05 +00:00
Nicholas Bishop
a42f9163bf Now that modal sculpt does stuff, added exec code. For this, added new Stroke RNA. For now, it's just 3D brush location, but lots more will be added (e.g. tablet pressure)
Pressing f4 to redo a stroke now works as expected.
2009-01-13 20:50:07 +00:00
Nicholas Bishop
d494cd5c6e Added missing sculpt header 2009-01-13 20:38:43 +00:00
Andrea Weikert
b22fecea79 2.5 MSVC9 projectfiles
* added new files in editors/object and editors/space_sequence
* added seqeffects.c in blenkernel
2009-01-13 20:30:22 +00:00
Nicholas Bishop
1300df4469 More sculpt work. Very very basic sculpt operators implemented, one for toggling the mode, the other for the brush. This just allows entering sculptmode and drawing using a simple brush. (Note the operator is still modal, no exec yet.) 2009-01-13 19:57:36 +00:00
Nathan Letwory
fecac53522 2.5 / Nodes
* add a list area for material/texture/scene selection.
2009-01-13 19:28:18 +00:00
Nathan Letwory
469b19d231 2.5 / SCons / Temporary Hack
* curve, gpencil, physics and preview don't have sources yet, so scons fails on that. Disabled for now
  Ton, when you actually put something in those dirs, remember to uncomment them in the editors/SConscript.
2009-01-13 19:01:39 +00:00
Nathan Letwory
5ecbf408c3 2.5 / Nodes
* forgot to revert this with previous commit
2009-01-13 17:10:56 +00:00
Ton Roosendaal
76cc2fef78 2.5
Added last few remaining modules in editors. Then the msvc
maintainer can already start typing! Only uv_paint is not
added, not sure how far Brecht is locally already.
2009-01-13 16:18:18 +00:00
Ton Roosendaal
b8dac71bda 2.5
- restored three more C files: editlattice, editkey
  and editgroup
- editmode lattice working, (mouse select works)
- accidentally removed yesterday 3d cursor drawing
- removed global editLatt entirely now.
2009-01-13 15:18:41 +00:00
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