blender.git
10 years agoadded ops for subdivide, subdiv multi, subdiv smooth, subdiv fractal
Shaul Kedem [Fri, 16 Jan 2009 04:48:33 +0000 (04:48 +0000)]
added ops for subdivide, subdiv multi, subdiv smooth, subdiv fractal

10 years agoFix sculpt memory leaks
Nicholas Bishop [Fri, 16 Jan 2009 03:24:12 +0000 (03:24 +0000)]
Fix sculpt memory leaks

10 years agoAdded a view3d function to read cached depth buffer, before was in sculpt.c where...
Nicholas Bishop [Fri, 16 Jan 2009 01:56:11 +0000 (01:56 +0000)]
Added a view3d function to read cached depth buffer, before was in sculpt.c where it didn't belong.

10 years ago 2.5
Michael Fox [Fri, 16 Jan 2009 00:58:33 +0000 (00:58 +0000)]
 2.5
*****
 - ported BorderZoom , shift-b
- currently disabled in camera view as to not conflict with setting render border

10 years agoAdded some temporary error prints for get_depth in sculpt
Nicholas Bishop [Fri, 16 Jan 2009 00:44:46 +0000 (00:44 +0000)]
Added some temporary error prints for get_depth in sculpt

10 years agoCleaning of the small part of sculpt still in blenkernel, more to come
Nicholas Bishop [Thu, 15 Jan 2009 21:07:44 +0000 (21:07 +0000)]
Cleaning of the small part of sculpt still in blenkernel, more to come

10 years ago2.5
Ton Roosendaal [Thu, 15 Jan 2009 18:28:40 +0000 (18:28 +0000)]
2.5

- Finished adding primitives in Mesh editmode.
  For test pleasure: hotkeys CTRL 0-9 add them.

More fun for testers:

- F3: gives menu of all registered ops. You can use
  it too, it then execs it again, and makes it the
  last executed operator.

- F4: executes last registered operator without menu.

10 years agoBrought back grab brush in sculpt mode, also removed old BrushAction struct.
Nicholas Bishop [Thu, 15 Jan 2009 16:57:17 +0000 (16:57 +0000)]
Brought back grab brush in sculpt mode, also removed old BrushAction struct.

10 years agoRNA
Brecht Van Lommel [Thu, 15 Jan 2009 16:18:32 +0000 (16:18 +0000)]
RNA
* Attempt to fix CMake build on some systems were it could not
  find the rna_*_gen.c files, now it specifies full path.

10 years ago2.5
Ton Roosendaal [Thu, 15 Jan 2009 16:07:39 +0000 (16:07 +0000)]
2.5

SHIFT+A add object back, no primitives in it though... later!

10 years ago2.5
Ton Roosendaal [Thu, 15 Jan 2009 15:01:39 +0000 (15:01 +0000)]
2.5

- Depricated another bunch of globals; all the totobj,
  totmesh, totvert, and so on.
- All code that needs such totals now count it themselves,
  these stats were not supposed to be reliable
- Editmesh now stores and manages own totals.
- Todo: make a scene->stats that tracks notifiers.

Bugfix: selecting failed in editmesh, backbuffer stuff was
too late, already using index ranges before it was set.

10 years ago2.5
Ton Roosendaal [Thu, 15 Jan 2009 10:55:48 +0000 (10:55 +0000)]
2.5

Added new lib ed_uvedit in linking path for Makefiles

10 years ago 2.5
Michael Fox [Thu, 15 Jan 2009 10:02:45 +0000 (10:02 +0000)]
 2.5
*****

small commit, ported make dupli real

10 years agoTweak scons linking order priority to fix compile on windows.
Brecht Van Lommel [Thu, 15 Jan 2009 05:51:00 +0000 (05:51 +0000)]
Tweak scons linking order priority to fix compile on windows.

10 years agodisallow identifiers with spaces 'cap end' wasn't working with the python api and...
Campbell Barton [Thu, 15 Jan 2009 05:41:25 +0000 (05:41 +0000)]
disallow identifiers with spaces 'cap end' wasn't working with the python api and made doc generation fail

10 years agoBrought back anchored mode for sculpt brushes.
Nicholas Bishop [Thu, 15 Jan 2009 05:09:33 +0000 (05:09 +0000)]
Brought back anchored mode for sculpt brushes.

10 years ago2.5: Space Image ported back
Brecht Van Lommel [Thu, 15 Jan 2009 04:38:18 +0000 (04:38 +0000)]
2.5: Space Image ported back

Organized as follows:

uvedit/
uv editing related code
uvedit_draw.c: drawing code
uvedit_ops.c: operators, just a few done
uvedit_unwrap_ops.c: will be operators for unwrapping
uvedit_paramatrizer.c: lscm/abf/stretch/pack

space_image/
space_image.c: registration and common getter/setters
image_draw.c: drawing code, mostly functional
image_panels.c: panels, all commented out
image_render.c: render callbacks, non functional
image_ops.c: operators, only view navigation done
image_header.c: header, menus mostly done but missing buttons

Notes:
* Header menus consist only of Operator and RNA buttons, if they
  are not implemented they're displayed grayed out. Ideally the full
  header could work like this, but std_libbuttons looks problematic.

* Started using view2d code more than the old code, but for now it
  still does own view2d management due to some very specific
  requirements that the image window has. The drawing code however
  is more clear hopefully, it only uses view2d, and there is no
  switching between 'p' and 'f' view2d's anymore, it is always 'f'.

* In order to make uvedit operators more independent I move some
  image space settings to scene toolsettings, and the current image
  and its buffer is in the context. Especially sync selection and
  select mode belonged there anyway as this cannot work correct with
  different spaces having different settings anyway.

* Image paint is not back yet, did not want to put that together with
  uvedit because there's really no code sharing.. perhaps vertex paint,
  image paint and sculpt would be good to have in one module to share
  brush code, partial redraw, etc better.

10 years agoRNA
Brecht Van Lommel [Thu, 15 Jan 2009 04:22:23 +0000 (04:22 +0000)]
RNA
* Work around bScreen/Screen DNA name patching, so bScreen does not
  require manual callbacks to be written for properties.
* Added SpaceLink and SpaceImage RNA.
* Fix issue initializing ID property arrays with default values.

DNA
* Some DNA changes for space image.
* And a fix for corrupt clone image pointer in reading brushes.

10 years agoUI: various changes
Brecht Van Lommel [Thu, 15 Jan 2009 04:13:38 +0000 (04:13 +0000)]
UI: various changes

* View2D to region now returns ints instead of shorts.
* Use "Numpad" instead of "Pad" in automatic keymap menu info.
* Menus can now use buttons other than BUTM and SEPR, in
  particular TOG and ROW are now supported instead of flipping
  bits manually.
* Added a simpler uiDefMenu* api for making menus now, and it
  only supports Operator and RNA buttons at the moment, will be
  used in next commit. Not sure how this will evolve .. makes
  menu code look cleaner anyways.
* Ensure that interface code doesn't crash when getting unknown
  Operators and RNA properties, and display their buttons grayed
  out in that case.

10 years agoAction Editor header menu structure ported, but menu items not yet linked up to funct...
Roland Hess [Thu, 15 Jan 2009 03:12:21 +0000 (03:12 +0000)]
Action Editor header menu structure ported, but menu items not yet linked up to functionality. Just wanted to get this committed in case I skid off a cliff in the snow tomorrow.

10 years agoBrought back the layer brush in sculpt mode.
Nicholas Bishop [Thu, 15 Jan 2009 03:10:01 +0000 (03:10 +0000)]
Brought back the layer brush in sculpt mode.

10 years agoedit mesh primitives: ctrl+1 to ctrl+6. monkey does not show and tube,cone and cylind...
Shaul Kedem [Thu, 15 Jan 2009 03:05:19 +0000 (03:05 +0000)]
edit mesh primitives: ctrl+1 to ctrl+6. monkey does not show and tube,cone and cylinder show with problems

10 years agoBrought back symmetry for sculpt mode, also added RNA for sculpt flags.
Nicholas Bishop [Thu, 15 Jan 2009 02:36:24 +0000 (02:36 +0000)]
Brought back symmetry for sculpt mode, also added RNA for sculpt flags.

10 years ago2.5
Ton Roosendaal [Wed, 14 Jan 2009 19:26:11 +0000 (19:26 +0000)]
2.5

Editmesh: add primitive basics back. Had to clean up a load of
crap there... but it's sorta in control, so I think Shul can
pick it up again.

Test: ctrl+0 adds plane, or ctrl+9 adds grid.

Notes for Shul:
- i've added a transform function, which gets correctly passed
  on to the add_prim function, should work for all object
  transforms. Only the code inside add_prim might be needed
  to check (it uses 4x4 mat now, not a 3x3)

- The old code with buttons has been ifdeffed out, check for
  user input and make it rna properties, which get read
  in the exec(), and handed over to the add_prim. Set them
  default now to the values from old buttons.

- Operator naming is preferred lower case, I gave this
  a new name.

- check a bit on formatting code, but don't use the old code
  as example! Look also at ED_keymap_mesh() for example.

10 years agoAdded missing sculpt/brush RNA properties.
Nicholas Bishop [Wed, 14 Jan 2009 18:48:16 +0000 (18:48 +0000)]
Added missing sculpt/brush RNA properties.
Also a few more tweaks to CMake/gcc warnings.

10 years agoTweak the CMake warnings a bit. For example, function declarations with no parameters...
Nicholas Bishop [Wed, 14 Jan 2009 18:03:47 +0000 (18:03 +0000)]
Tweak the CMake warnings a bit. For example, function declarations with no parameters being declared without void in the parameter list were throwing too many warnings to be useful. Same for implicit casting of function return values from one numeric type to another.

10 years agoRemoved a second declaration for BLI_uniquename.
Nicholas Bishop [Wed, 14 Jan 2009 17:36:13 +0000 (17:36 +0000)]
Removed a second declaration for BLI_uniquename.
Also supressed cmake/gcc warnings about unused parameters since these are everywhere (sometimes with good reason, for callbacks)

10 years agoFixed warnings in sculpt, also brought back brush curve.
Nicholas Bishop [Wed, 14 Jan 2009 17:22:30 +0000 (17:22 +0000)]
Fixed warnings in sculpt, also brought back brush curve.

10 years ago2.5
Ton Roosendaal [Wed, 14 Jan 2009 16:54:36 +0000 (16:54 +0000)]
2.5

Bugfix;
- do not set active base/object yourse, but use ED_base_object_activate
- view3d buttons was reading NULL pointer.

10 years agoAdded better gcc warnings in Cmake.
Nicholas Bishop [Wed, 14 Jan 2009 16:40:11 +0000 (16:40 +0000)]
Added better gcc warnings in Cmake.

10 years ago2.5
Ton Roosendaal [Wed, 14 Jan 2009 16:37:52 +0000 (16:37 +0000)]
2.5

A small round of warning cleanups; unused variables, missing
headers and some const types.

10 years ago2.5
Ton Roosendaal [Wed, 14 Jan 2009 16:13:50 +0000 (16:13 +0000)]
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

10 years agoMoved some more sculpt data into operator properties, also the test brush is now...
Nicholas Bishop [Wed, 14 Jan 2009 15:29:29 +0000 (15:29 +0000)]
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.

10 years ago2.5
Ton Roosendaal [Wed, 14 Jan 2009 13:18:10 +0000 (13:18 +0000)]
2.5

Hrmf; sconscript apparently can't do emtpy dirs!

10 years ago2.5
Ton Roosendaal [Wed, 14 Jan 2009 13:06:09 +0000 (13:06 +0000)]
2.5

Still old editNurb here... last part
(I committed in parts, have gpencil restored here and can't
commit that yet!)

10 years ago2.5
Ton Roosendaal [Wed, 14 Jan 2009 13:05:10 +0000 (13:05 +0000)]
2.5

Still old editNurb here...

10 years ago2.5
Ton Roosendaal [Wed, 14 Jan 2009 13:04:48 +0000 (13:04 +0000)]
2.5

Still some old editNurb here...

10 years ago2.5
Ton Roosendaal [Wed, 14 Jan 2009 12:26:45 +0000 (12:26 +0000)]
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

10 years agoMoved a couple more sculpt settings into operator properties, including shiftkey...
Nicholas Bishop [Wed, 14 Jan 2009 03:02:44 +0000 (03:02 +0000)]
Moved a couple more sculpt settings into operator properties, including shiftkey for flipping stroke direction in or out

10 years agoNoticed that sculpt was quite slow because of string lookups in RNA, so added a separ...
Nicholas Bishop [Tue, 13 Jan 2009 23:21:05 +0000 (23:21 +0000)]
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.

10 years ago2.5 / Keymap definition
Nathan Letwory [Tue, 13 Jan 2009 21:18:05 +0000 (21:18 +0000)]
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).

10 years agoNow that modal sculpt does stuff, added exec code. For this, added new Stroke RNA...
Nicholas Bishop [Tue, 13 Jan 2009 20:50:07 +0000 (20:50 +0000)]
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.

10 years agoAdded missing sculpt header
Nicholas Bishop [Tue, 13 Jan 2009 20:38:43 +0000 (20:38 +0000)]
Added missing sculpt header

10 years ago2.5 MSVC9 projectfiles
Andrea Weikert [Tue, 13 Jan 2009 20:30:22 +0000 (20:30 +0000)]
2.5 MSVC9 projectfiles
* added new files in editors/object and editors/space_sequence
* added seqeffects.c in blenkernel

10 years agoMore sculpt work. Very very basic sculpt operators implemented, one for toggling...
Nicholas Bishop [Tue, 13 Jan 2009 19:57:36 +0000 (19:57 +0000)]
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.)

10 years ago2.5 / Nodes
Nathan Letwory [Tue, 13 Jan 2009 19:28:18 +0000 (19:28 +0000)]
2.5 / Nodes
* add a list area for material/texture/scene selection.

10 years ago2.5 / SCons / Temporary Hack
Nathan Letwory [Tue, 13 Jan 2009 19:01:39 +0000 (19:01 +0000)]
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.

10 years ago2.5 / Nodes
Nathan Letwory [Tue, 13 Jan 2009 17:10:56 +0000 (17:10 +0000)]
2.5 / Nodes
* forgot to revert this with previous commit

10 years ago2.5
Ton Roosendaal [Tue, 13 Jan 2009 16:18:18 +0000 (16:18 +0000)]
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.

10 years ago2.5
Ton Roosendaal [Tue, 13 Jan 2009 15:18:41 +0000 (15:18 +0000)]
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.

10 years agofix from sirdude i patched and fixed my linkage erros in linux
Joilnen Leite [Tue, 13 Jan 2009 13:13:04 +0000 (13:13 +0000)]
fix from sirdude i patched and fixed my linkage erros in linux

10 years ago2.5
Ton Roosendaal [Tue, 13 Jan 2009 12:32:01 +0000 (12:32 +0000)]
2.5

Added poselib.c back, non functional entirely still.

10 years ago2.5
Ton Roosendaal [Tue, 13 Jan 2009 11:41:52 +0000 (11:41 +0000)]
2.5

Renamed sequencer file to conform editor specs.
Couldn't yesterday, svn refused for some reason :)

10 years ago 2.5
Michael Fox [Tue, 13 Jan 2009 09:48:25 +0000 (09:48 +0000)]
  2.5
******
small commit
- ported Select Linked (shift-L)
- it does have IPO for now

10 years ago 2.5
Michael Fox [Tue, 13 Jan 2009 05:31:33 +0000 (05:31 +0000)]
  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

10 years agoedit mesh operators for edit mesh view
Shaul Kedem [Tue, 13 Jan 2009 02:09:58 +0000 (02:09 +0000)]
edit mesh operators for edit mesh view

10 years ago2.5
Joshua Leung [Mon, 12 Jan 2009 22:54:30 +0000 (22:54 +0000)]
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).

10 years agoAdded pthread include for windows scons
Ton Roosendaal [Mon, 12 Jan 2009 19:14:33 +0000 (19:14 +0000)]
Added pthread include for windows scons

10 years ago2.5
Ton Roosendaal [Mon, 12 Jan 2009 19:02:08 +0000 (19:02 +0000)]
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.

10 years ago2.5 / SCons / Nodes
Nathan Letwory [Mon, 12 Jan 2009 18:07:55 +0000 (18:07 +0000)]
2.5 / SCons / Nodes
* quick "typo" fix before anybody notices.

10 years ago2.5 / SCons
Nathan Letwory [Mon, 12 Jan 2009 16:55:46 +0000 (16:55 +0000)]
2.5 / SCons
- make sure WITH_BF_PYTHON=False is respected.

10 years ago2.5 / Nodes / SCons(mingw)
Nathan Letwory [Mon, 12 Jan 2009 15:25:17 +0000 (15:25 +0000)]
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.

10 years ago2.5
Ton Roosendaal [Mon, 12 Jan 2009 09:04:53 +0000 (09:04 +0000)]
2.5

Quick fix; redraw 3d view when using header buttons

10 years ago2.5 / Nodes
Nathan Letwory [Mon, 12 Jan 2009 01:02:52 +0000 (01:02 +0000)]
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).

10 years ago2.5 / Nodes
Nathan Letwory [Mon, 12 Jan 2009 00:14:37 +0000 (00:14 +0000)]
2.5 / Nodes
* XKey for deleting selected nodes.

10 years ago2.5 / Nodes
Nathan Letwory [Mon, 12 Jan 2009 00:00:59 +0000 (00:00 +0000)]
2.5 / Nodes
* add nodes through header menu (no way to link them yet, though ;)
  Note: the adding needs to be properly operatorfied still.

10 years ago2.5
Nathan Letwory [Sun, 11 Jan 2009 23:48:53 +0000 (23:48 +0000)]
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.

10 years agothis pretty ugly hand coded
Jens Ole Wund [Sun, 11 Jan 2009 22:42:21 +0000 (22:42 +0000)]
this pretty ugly hand coded
just to prevent this slips on first 'release'

10 years agoFixed an apparent typo, was checking for vertex paint twice.
Nicholas Bishop [Sun, 11 Jan 2009 21:42:39 +0000 (21:42 +0000)]
Fixed an apparent typo, was checking for vertex paint twice.

10 years ago2.5
Ton Roosendaal [Sun, 11 Jan 2009 18:35:16 +0000 (18:35 +0000)]
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

10 years ago2.5
Martin Poirier [Sun, 11 Jan 2009 18:27:41 +0000 (18:27 +0000)]
2.5

Use context to get selected objects for transform

10 years ago2.5 MSVC9 projectfiles
Andrea Weikert [Sun, 11 Jan 2009 15:15:15 +0000 (15:15 +0000)]
2.5 MSVC9 projectfiles
small update:
* added editors/space_ipo(ipo_draw.c
* added editors/object/editconstraint.c

10 years agoRNA
Brecht Van Lommel [Sat, 10 Jan 2009 22:57:33 +0000 (22:57 +0000)]
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.

10 years ago2.5
Martin Poirier [Sat, 10 Jan 2009 19:45:48 +0000 (19:45 +0000)]
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.

10 years ago2.5
Ton Roosendaal [Sat, 10 Jan 2009 19:34:23 +0000 (19:34 +0000)]
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)

10 years ago2.5
Martin Poirier [Sat, 10 Jan 2009 18:33:16 +0000 (18:33 +0000)]
2.5

Transform draw callback: constraints, snapping, prop circle

10 years ago2.5
Ton Roosendaal [Sat, 10 Jan 2009 17:38:29 +0000 (17:38 +0000)]
2.5

Bugfix; 64 bits alignment error in vpaint. tsk to me!

10 years ago2.5
Ton Roosendaal [Sat, 10 Jan 2009 17:20:34 +0000 (17:20 +0000)]
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.

10 years ago2.5
Ton Roosendaal [Sat, 10 Jan 2009 16:49:22 +0000 (16:49 +0000)]
2.5

Added custom data pointer to custom region_draw_cb
Also removed the test with green rect.

10 years ago2.5
Martin Poirier [Sat, 10 Jan 2009 16:46:29 +0000 (16:46 +0000)]
2.5

rename transform mode enum to something proper

10 years ago2.5
Ton Roosendaal [Sat, 10 Jan 2009 14:19:14 +0000 (14:19 +0000)]
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...

10 years ago2.5
Ton Roosendaal [Sat, 10 Jan 2009 14:03:00 +0000 (14:03 +0000)]
2.5

Popup menus were tagged with wrong direction, so arrow keys or
scrollwheel didn't work.

10 years agoadded more parent properties for grouped rna stricts
Campbell Barton [Sat, 10 Jan 2009 03:44:02 +0000 (03:44 +0000)]
added more parent properties for grouped rna stricts

10 years agoadded rna property "parent" so nested RNA structs can access their parent RNA struct
Campbell Barton [Fri, 9 Jan 2009 16:08:47 +0000 (16:08 +0000)]
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.

10 years ago2.5
Ton Roosendaal [Fri, 9 Jan 2009 15:04:52 +0000 (15:04 +0000)]
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.

10 years ago2.5
Ton Roosendaal [Fri, 9 Jan 2009 13:55:45 +0000 (13:55 +0000)]
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.

10 years ago2.5 - IPO Editor
Joshua Leung [Fri, 9 Jan 2009 06:25:14 +0000 (06:25 +0000)]
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. ;)

10 years agoRemoved more bad function calls in sculpt.
Nicholas Bishop [Fri, 9 Jan 2009 05:33:28 +0000 (05:33 +0000)]
Removed more bad function calls in sculpt.

10 years agoCleaned up some missing functions in sculpt.
Nicholas Bishop [Fri, 9 Jan 2009 05:24:11 +0000 (05:24 +0000)]
Cleaned up some missing functions in sculpt.

10 years agoMore sculpt cleanup, removed sculpt_data and sculpt_session functions,
Nicholas Bishop [Fri, 9 Jan 2009 00:38:48 +0000 (00:38 +0000)]
More sculpt cleanup, removed sculpt_data and sculpt_session functions,
both of which used G(lobal)

10 years ago2.5 filebrowser
Andrea Weikert [Thu, 8 Jan 2009 18:47:16 +0000 (18:47 +0000)]
2.5 filebrowser
cleanup of space initialisation
fix for filebrowser opening with wrong parameters from window pupmenu after having been opened with F1.

10 years ago2.5 MSVC9 projectfiles
Andrea Weikert [Thu, 8 Jan 2009 18:20:47 +0000 (18:20 +0000)]
2.5 MSVC9 projectfiles
* update of RNA project after reorganisation
* added editors/space_view3d/vpaint.c and editors/mesh/editdeforn.c to projectfiles

10 years ago2.5
Martin Poirier [Thu, 8 Jan 2009 17:12:50 +0000 (17:12 +0000)]
2.5

Transform editbones

10 years ago2.5
Martin Poirier [Thu, 8 Jan 2009 16:52:30 +0000 (16:52 +0000)]
2.5

Crash when loading certain files with armature. Use scene from context instead of local var (which can be null).

10 years agoRNA: don't pass RNA type in RNA_id_pointer_create, can be found automatically.
Brecht Van Lommel [Thu, 8 Jan 2009 15:33:34 +0000 (15:33 +0000)]
RNA: don't pass RNA type in RNA_id_pointer_create, can be found automatically.

10 years agoRNA: fix crash in python code, forgot to update this part in a previous commit.
Brecht Van Lommel [Thu, 8 Jan 2009 15:29:09 +0000 (15:29 +0000)]
RNA: fix crash in python code, forgot to update this part in a previous commit.

10 years agoRNA
Brecht Van Lommel [Thu, 8 Jan 2009 13:57:29 +0000 (13:57 +0000)]
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.

10 years ago2.5: make and cmake fixes for recent changes.
Brecht Van Lommel [Thu, 8 Jan 2009 13:54:39 +0000 (13:54 +0000)]
2.5: make and cmake fixes for recent changes.

10 years agoRNA - Action Wrapping
Joshua Leung [Thu, 8 Jan 2009 11:14:58 +0000 (11:14 +0000)]
RNA - Action Wrapping

Removed flags used for Action Editor from wrapping for Action. These do not belong here!

10 years ago 2.5
Michael Fox [Thu, 8 Jan 2009 02:50:37 +0000 (02:50 +0000)]
  2.5
******
- Ported set/clear slow parents
- currently there is no keymap entries

- removed some unused functions and some tidying up